[BUGFIX] AllowLanguageSynchronization processes null values twice 91/52091/5
authorOliver Hader <oliver@typo3.org>
Sat, 18 Mar 2017 22:38:26 +0000 (23:38 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 23 Mar 2017 06:51:36 +0000 (07:51 +0100)
commit7d3fedff3f91fe90881f2cd5ccee84192ac98f25
treeaee23ae6e72156d3d33a970b8fc58c330cc6833a
parent4eb91cae6e5b59beddb506b9f5904c8f0ba00eb3
[BUGFIX] AllowLanguageSynchronization processes null values twice

TCA columns having 'l10n_mode' defined to either 'exclude' or
'mergeIfNotBlank' (later is autotatically migrated to the according
'allowLanguageSynchronization' behavior) are processed twice on handling
modifications in DataHandler. In a result an exeception is throws which
prevents recursions on chained translations.

Checking null values with plain isset() is replaced with a new method
using array_key_exists() to consider null values as well.

Change-Id: I3f1b0cdf3f62845f3bae3632f6aaa9b2dfdc6e0b
Resolves: #80338
Releases: master
Reviewed-on: https://review.typo3.org/52091
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php
typo3/sysext/core/Tests/Functional/DataHandling/Regular/AbstractActionTestCase.php
typo3/sysext/core/Tests/Functional/DataHandling/Regular/DataSet/LiveDefaultElements.csv
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/ActionTest.php
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizeContentWSynchronizationHNull.csv [new file with mode: 0644]