Hidden empty value fields shoud be disabled when related field is disabled
Use case: A form which is used to redisplay a stored entity with some fields (checkbox) being disabled for further edit, where the current value is checked.
Submit the edit form without changes.
Expected: The value for the disabled checkbox fields stays unchanged
Actual: The empty default value for the fields is submitted, hence the state of the disabled checkbox field changed to unchecked
Solution: AbstractFormFieldViewHelper::renderHiddenFieldForEmptyValue() needs to check if the current field is disabled, and if so, add this flag to the hidden field
Updated by Bastian Waidelich about 7 years ago
- Category set to ViewHelpers
- Status changed from New to Accepted
- Assignee set to Bastian Waidelich
Good catch! I assign this one to myself so I won't forget it, but my todo list is quite large atm so it will take a while. If anyone feels like pushing a change, don't let that stop you!! ;)