#88030Radio and Checkbox-Viewhelper should work in ObjectMode like e.g. TextFieldViewHelper
Description
Currently Radio- and CheckboxViewhelper breaks, if you use in form an object (and property attribute), if you not have a method and use `__call` or `__get`. In the TextFieldViewHelper is is checked correctly, but not in Radio and Checkbox.
Already submitted a Patch, but don’t know, that a forge-issue is required. So here we are…
https://review.typo3.org/c/Packages/TYPO3.CMS/+/59890
Clause Due suggest to include this in v10, I think, that it should be able to include in 9.5 without large side effects
Reviews 1
History 25
-
Gerrit Code Review pushed patch set 3 for master to change 59890 status
NewUnder Review 03/28/19, 20:40 -
Gerrit Code Review pushed patch set 4 for master to change 59890 03/28/19, 20:41
-
Julian Wundrak changed description 03/28/19, 20:51
-
Gerrit Code Review pushed patch set 5 for master to change 59890 05/25/20, 20:44
-
Benni Mack commented and changed status
Under ReviewClosed 11/09/26, 09:08
Re-checked on main (v15): ObjectAccess::getPropertyPath() now returns null for properties it cannot access instead of throwing, so f:form.checkbox and f:form.radio no longer fail with __get/__call-based form objects. They behave exactly like f:form.textfield: values from __get are read, __call-only getters are not, and that applies to every form field. The patch was abandoned in 2021. Closing as resolved; please open a new issue with a reproducible template if you still hit a problem.