Issue Bug Closed

#91686Checkbox ViewHelper attribute checked has no effect when a form object is omitted to form viewhelper

Daniel Dorndorf 06/22/20, 11:54 updated 04/04/22, 15:19

Description

When using a form object and having checkboxes explicitly using the checked attribute it always prefers the objects value.

This seems not like an expected behaviour, you may want to be able to override the objects value.

Greetings
Daniel

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 6

  1. Riccardo De Contardi commented 06/22/20, 16:36

    @Daniel Dorndorf are we talking about EXT:form ?

  2. Daniel Dorndorf commented and changed subject Checkbox attribute checked has no effect when object is omitted to form Checkbox ViewHelper attribute checked has no effect when object is omitted to form 06/22/20, 20:20

    No I’m meaning the checkbox ViewHelper, it fetches the form objects data and adds sets the check state ignoring the checked attribute you can set to override this.

    I could’nt imagine that this is the expected behaviour.

    I also adjustet the headline for clarification.

  3. Daniel Dorndorf changed subject Checkbox ViewHelper attribute checked has no effect when object is omitted to form Checkbox ViewHelper attribute checked has no effect when a form object is omitted to form viewhelper 06/22/20, 20:21

  4. Daniel Dorndorf commented 06/23/20, 08:41

    This issue can be closed, the problem was caused by a caching issue, not the viewhelper logic.

  5. Mathias Schreiber changed Sprint Focus Remote Sprint 03/08/22, 12:09

  6. Andreas Kienast commented and changed status New Closed 04/04/22, 15:19

    Closed as requested