[BUGFIX] Prevent wrong record copies 05/39605/4
authorNicole Cordes <typo3@cordes.co>
Tue, 19 May 2015 07:28:46 +0000 (09:28 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Tue, 19 May 2015 10:06:25 +0000 (12:06 +0200)
commit293b93b7228acd2af06b6cb0bc62ae65b0778c23
tree523a3129f9946c1c91fd7604ab7042a60499185f
parent4e4bb7bd4617ada78d8f0603fc6c8684d4340d1f
[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/39605
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/DataHandling/DataHandler.php