#106533Fluid f:form.select triggers PHP TypeError
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
History 37
-
Gerrit Code Review pushed patch set 1 for main to change 89005 status
NewUnder Review 04/09/25, 14:36 -
Gerrit Code Review pushed patch set 2 for main to change 89005 04/09/25, 14:45
-
Stefan Bürk commented 04/09/25, 14:54
-
Gerrit Code Review pushed patch set 1 for 12.4 to change 89006 04/09/25, 15:29
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 89007 04/09/25, 15:29
-
Markus Klein commented and changed status
Under ReviewResolved done0 %100 % 04/09/25, 15:45Applied in changeset commit:d965d5f939e8b692b8a35f9ed76f79727e43cabf.
-
Benni Mack changed status
ResolvedClosed 12/02/25, 14:22
This should be fixed in fluid, but would be breaking change:
https://github.com/TYPO3/Fluid/issues/1035