[BUGFIX] Invalid call to t3lib_TCEmain::processRemapStack() 44/17344/2
authorOliver Hader <oliver@typo3.org>
Fri, 4 Jan 2013 07:40:29 +0000 (08:40 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 4 Jan 2013 09:05:11 +0000 (10:05 +0100)
commit44f7fdd3586892b195987640ddb81590907b9e70
tree0ef50c9625d7a918b5c2c017cf2beced24eea7eb
parentea7de4900bf25a7fe16d094687d7048dc80d8491
[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/17344
Reviewed-by: Mattias Nilsson
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
t3lib/class.t3lib_tcemain.php