Bug #59057

Hidden empty value fields shoud be disabled when related field is disabled

Added by Alexander Berl over 6 years ago. Updated over 6 years ago.

Status:
Under Review
Priority:
Must have
Category:
ViewHelpers
Target version:
-
Start date:
2014-05-22
Due date:
% Done:

0%

Estimated time:
Has patch:
No

Description

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

#1

Updated by Bastian Waidelich over 6 years ago

  • Project changed from TYPO3.Flow to TYPO3.Fluid

Moved to TYPO3.Fluid issue tracker

#2

Updated by Bastian Waidelich over 6 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!! ;)

#3

Updated by Gerrit Code Review over 6 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.Fluid has been pushed to the review server.
It is available at https://review.typo3.org/30817

#4

Updated by Gerrit Code Review over 6 years ago

Patch set 2 for branch master of project Packages/TYPO3.Fluid has been pushed to the review server.
It is available at https://review.typo3.org/30817

Also available in: Atom PDF