Issue Bug Closed

#79245extbase FlexFormService: keys with dot inside get lost

Christian Weiske 01/10/17, 13:41 updated 10/02/18, 11:04

Description

TYPO3\CMS\Extbase\Service\FlexFormService::walkFlexFormNode() loses keys with . dot notation:

<itemType index="_arrayContainer">
  <el>
    <field index="dot.one">
      <value index="vDEF">dot.one-Value</value>
    </field>
    <field index="dot.two">
      <value index="vDEF">dot.two-Value</value>
    </field>
  </el>
</itemType>

Results in:

'dot' => Array &4 (
    'two' => 'dot.two-Value'
)

This happens with TYPO3 7.6.15 and PHP 7.0.8.

Can be tested by applying the attached patch to the unit test file and running:

$ ./bin/phpunit -c typo3/sysext/core/Build/UnitTests.xml  typo3/sysext/extbase/Tests/Unit/Service/FlexFormServiceTest.php

Reviews 2