Task #5636
Task #26664: Clean up Form ViewHelpers
Task #26658: Make Form ViewHelpers consistent
Form_RadioViewHelper and CheckBoxViewHelper miss check for existing object before it is accessed.
0%
Description
If you have an form for creating an Object currently this will fail with an exception.
The other FormViewHelper use the getValue() function to determine an property-value of object assigned to the form.
Since Checkbox/Radiobox has to compare against a value to decide if selected, they have to fetch the property-value on their own.
in getValue a check on $this->viewHelperVariableContainer->exists('Tx_Fluid_ViewHelpers_FormViewHelper', 'formObject') and an call to $this->addAdditionalIdentityPropertiesIfNeeded(); are performed before acessing the property. If you do so in RadioBox and Checkbox too, no exception anymore.
regards
Steffen
Files
Related issues