#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 <span data-processor="relativetime" data-value="2019-03-28T20:40:26+00:00" > 03/28/19, 20:40 </span> -
Gerrit Code Review pushed patch set 4 for master to change 59890 <span data-processor="relativetime" data-value="2019-03-28T20:41:55+00:00" > 03/28/19, 20:41 </span>
-
Julian Wundrak changed description <span data-processor="relativetime" data-value="2019-03-28T20:51:55+00:00" > 03/28/19, 20:51 </span>
-
Gerrit Code Review pushed patch set 5 for master to change 59890 <span data-processor="relativetime" data-value="2020-05-25T20:44:11+00:00" > 05/25/20, 20:44 </span>
-
Benni Mack commented and changed status
Under ReviewClosed <span data-processor="relativetime" data-value="2026-11-09T09:08:19+00:00" > 11/09/26, 09:08 </span>
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.