Bug #79245
closedextbase FlexFormService: keys with dot inside get lost
100%
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
Updated by Christian Weiske almost 8 years ago
Also happens with PHP 5.6.29 and PHP 7.1.0, so it's not the PHP reference bug https://bugs.php.net/bug.php?id=72543.
Updated by Christian Weiske almost 8 years ago
- File FlexFormService.php.diff FlexFormService.php.diff added
Problem was that the complete subarray got replaced.
Updated by Gerrit Code Review almost 8 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51236
Updated by Gerrit Code Review over 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51236
Updated by Gerrit Code Review over 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51236
Updated by Gerrit Code Review over 7 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51236
Updated by Gerrit Code Review almost 7 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51236
Updated by Gerrit Code Review almost 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54806
Updated by Anonymous almost 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 2188f919f62b7f35fcade197dee4359f735a92b3.