[BUGFIX] Invalid call to t3lib_TCEmain::processRemapStack() 54/17354/2
authorOliver Hader <oliver@typo3.org>
Fri, 4 Jan 2013 07:46:09 +0000 (08:46 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 4 Jan 2013 09:04:34 +0000 (10:04 +0100)
commit3847227e84f0a933535d831098b45b743d989080
tree3d3543656c4510961e400466cd8af80051c60120
parent7edf97ec8ab1a622947bb50fc271d122d880c8b1
[BUGFIX] Invalid call to t3lib_TCEmain::processRemapStack()

The remap stack in t3lib_TCEmain/DataHandler is dedicated to
process pending records and references after all database
operations. This occurs if child-parent-structures are handled
and not all data has been persisted yet.

However, there's one call that at least influences this
behaviour on workspaces using IRRE records, which should happen
at the end of processing data-map or command-map - here's the
call-stack:
* copyRecord_raw($table, $uid, $pid, $overrideArray, ...)
* insertNewCopyVersion($table, $fieldArray, $realPid)
* processRemapStack()

This behaviour has been introduced in 2007 with commit
ecff9833c02e6bc61d98a6ff4b34b741c5d732ad for a first draft to
get IRRE working in workspaces, which was then partly reverted
during TYPO3 4.2 development - but some changes obviously have
been overseen.

Change-Id: Ibfb77b1202b0a8136f71bcf5191848fd8e60d390
Fixes: #44301
Releases: 4.5, 4.6, 4.7, 6.0, 6.1
Reviewed-on: https://review.typo3.org/17354
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/core/Classes/DataHandling/DataHandler.php