Project

General

Profile

Actions

Bug #79245

closed

extbase FlexFormService: keys with dot inside get lost

Added by Christian Weiske almost 8 years ago. Updated about 6 years ago.

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

FlexFormServiceTest.php.diff (1.32 KB) FlexFormServiceTest.php.diff Christian Weiske, 2017-01-10 13:41
FlexFormService.php.diff (959 Bytes) FlexFormService.php.diff Christian Weiske, 2017-01-10 14:15
Actions

Also available in: Atom PDF