Issue Bug Closed

#109392MvcPropertyMappingConfigurationService can not initialize numeric Arrays of Objects

Andreas Häfner 03/27/26, 06:49 updated 03/31/26, 08:09

Description

Followiong form produces an nested numeric array in “__trustedProperties”, which leads to a TypeError in \TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface::forProperty(), which expects a string as property.

<f:variable name="testObject" value="{title: 'title of object', nestedelements: {0: {title: 'nested1'},1: {title: 'nested2'},2: {title: 'nested3'}}}"/>
<f:form name="testNestedObjects" object="{testObject}" objectName="testObject" method="post"
        action="update"
        enctype="multipart/form-data">

    <f:form.textfield property="title"/>
    <f:for each="{testObject.nestedelements}" as="element" iteration="iteration">
        <f:form.textfield property="nestedelements.{iteration.index}.title"/>
    </f:for>

    <f:form.submit name="submit" value="Send"/>
</f:form>

This seems to be same issue as https://forge.typo3.org/issues/108727.

Extension works properly, if attached patch is applied.

Reviews 1