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

History 37

  1. Gerrit Code Review pushed patch set 1 for main to change 89005 status New Under Review 04/09/25, 14:36

  2. Gerrit Code Review pushed patch set 2 for main to change 89005 04/09/25, 14:45

  3. Stefan Bürk commented 04/09/25, 14:54

    This should be fixed in fluid, but would be breaking change:

    https://github.com/TYPO3/Fluid/issues/1035

  4. Gerrit Code Review pushed patch set 1 for 12.4 to change 89006 04/09/25, 15:29

  5. Gerrit Code Review pushed patch set 1 for 13.4 to change 89007 04/09/25, 15:29

  6. Markus Klein commented and changed status Under Review Resolved done 0 % 100 % 04/09/25, 15:45

    Applied in changeset commit:d965d5f939e8b692b8a35f9ed76f79727e43cabf.

  7. Benni Mack changed status Resolved Closed 12/02/25, 14:22