[BUGFIX] Avoid invalid references in DataMapProcessor 67/54667/2
authorOliver Hader <oliver@typo3.org>
Wed, 15 Nov 2017 15:07:57 +0000 (16:07 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 16 Nov 2017 17:50:52 +0000 (18:50 +0100)
commit4df710e11d29a6479f5c79ed9b99601c5bba5705
tree40e27af6f0129269ac689eb6419a952715b67267
parent17ad2f310bfff41f48d8d83e5e2be2bb2fdaaf1f
[BUGFIX] Avoid invalid references in DataMapProcessor

If DataMapProcessor is called with a non-reference id, e.g.
zero (0), this submission is considered as a reference. Since
there is no database record having UID 0, the synchronization
process fails with the following exeception:

#1486233164: Child record was not processed

To solve this behavior, invalid references (empty/zero) are
not considered anymore to compare references. Besides that,
values for localized records that are configured to be
synchronized are sanitized correctly now.

Resolves: #83009
Releases: master, 8.7
Change-Id: Ie370007521c45dac8bca03978a387b4662952b1d
Reviewed-on: https://review.typo3.org/54667
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php
typo3/sysext/core/Tests/Functional/DataHandling/IRRE/ForeignField/AbstractActionTestCase.php
typo3/sysext/core/Tests/Functional/DataHandling/IRRE/ForeignField/Modify/ActionTest.php