Issue Bug Closed

#88030Radio and Checkbox-Viewhelper should work in ObjectMode like e.g. TextFieldViewHelper

Julian Wundrak 03/28/19, 20:38 updated 11/09/26, 09:08

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

  1. Gerrit Code Review pushed patch set 3 for master to change 59890 status New Under Review <span data-processor="relativetime" data-value="2019-03-28T20:40:26+00:00" > 03/28/19, 20:40 </span>

  2. Benni Mack commented and changed status Under Review Closed <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.