[BUGFIX] Prevent wrong record copies 16/39616/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Tue, 19 May 2015 10:09:38 +0000 (12:09 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Tue, 19 May 2015 10:11:09 +0000 (12:11 +0200)
commitfa5fdb4d61086ed4c83006ebe199d568d4d03444
tree6389e176f6b98b219d8498eca42ad923a9809322
parentf5dc7d5d752c3ab1f54aa93a3b57e3b2cf06b6ee
[BUGFIX] Prevent wrong record copies

Before starting any record copy process, we have to check if the
destination page can handle the record type. Currently if you copy a
record with IRRE references, the references are copied first but the
original record isn't copied because of missing permissions. The
copied IRRE elements stay and pollute the original record as the
references are added to it. This patch adds a check if the destination
page can handle the mother record type and starts copy process only if
allowed.

Resolves: #66920
Releases: master, 6.2
Change-Id: I274792b13170f37e3e799ff892ea877ba44d90a8
Reviewed-on: http://review.typo3.org/39616
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/DataHandling/DataHandler.php