Actions
Bug #79245
closedextbase FlexFormService: keys with dot inside get lost
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2017-01-10
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
On Location Sprint
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
Files
Actions