[BUGFIX] Avoid superfluous IRRE child record duplication 52/26552/4
authorAlexander Stehlik <alexander.stehlik@googlemail.com>
Mon, 23 Dec 2013 16:47:20 +0000 (17:47 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Mon, 17 Mar 2014 19:48:24 +0000 (20:48 +0100)
commitc81102bfbd71b8de62a9e9bc4c0c52e773ecd1b0
treef18b7126bc0411898f61d78aee78c493d1d93f20
parentbf87d9f802858d7a43cb2141fbae9e821469044b
[BUGFIX] Avoid superfluous IRRE child record duplication

If copying a page, all records on that page will be copied to
the accordant destination page. IRRE parent-child structures
are cloned along the way as well. However, if a table (that is
defined a IRRE child) is processed before the accordant parent
record, the parent itself will duplicate its children again.
This behaviour leads to superfluous duplicates and is wrong.

A check in DataHandler::copyRecord_procBasedOnFieldType() now
ensures that records are only copied once during the accordant
DataHander copy process.

Resolves: #44795
Releases: 6.2
Change-Id: Ia1e4129432f37c0dd6bfedb5fd69394e2c244d34
Reviewed-on: https://review.typo3.org/26552
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Tests/Functional/DataHandling/IRRE/CSV/AbstractActionTestCase.php
typo3/sysext/core/Tests/Functional/DataHandling/IRRE/CSV/DataSet/Assertion/copyPageWHotelBeforeParentContent.csv [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/DataHandling/IRRE/ForeignField/AbstractActionTestCase.php
typo3/sysext/core/Tests/Functional/DataHandling/IRRE/ForeignField/DataSet/Assertion/copyPageWHotelBeforeParentContent.csv [new file with mode: 0644]