[BUGFIX] Invalid call to t3lib_TCEmain::processRemapStack() 45/17345/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:49 +0000 (10:04 +0100)
commit8c821aa9ae231280cf4230e070788ed54351f2f2
tree1664b99b746bc3bec1759c116fbfe693085cbcfe
parent676888082d4c90e3d00f8e0a8a364de213b17ea0
[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/17345
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/core/Classes/DataHandling/DataHandler.php