Issue Bug Closed

#106533Fluid f:form.select triggers PHP TypeError

Markus Klein 04/09/25, 14:33 updated 12/02/25, 14:22

Description

> TYPO3\CMS\Extbase\Reflection\ObjectAccess::getPropertyPath(): Argument #2 ($propertyPath) must be of type string, int given, called in /var/www/html/vendor/typo3/cms-fluid/Classes/ViewHelpers/Form/SelectViewHelper.php on line 239

Calling code:

<f:form.select options="{itemList}" optionLabelField="0" optionValueField="1" />

Obviously the “0” and “1” values in the Fluid code are converted to int, hence property access fails.

Reviews 3