[BUGFIX] Fix translation moving in workspaces
authorTolleiv Nietsch <info@tolleiv.de>
Sun, 12 Feb 2012 05:01:55 +0000 (06:01 +0100)
committerGeorg Ringer <mail@ringerge.org>
Mon, 5 Mar 2012 20:52:27 +0000 (21:52 +0100)
Seems that the API changes introduced with changeset 89bd701c
haven't been made everywhere. This caused some issue when
translated records are move in a workspace.

Goes together with a fix in EXT:version which can be found under
https://review.typo3.org/8997

Fixes: #33592
Releases: 4.5, 4.6, 4.7, 4.8

Change-Id: Ie9e54386e328c5ce23c8e3c2373ae90c0a0ffee8
Reviewed-on: http://review.typo3.org/8998
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
t3lib/class.t3lib_tcemain.php

index 8ffc253..5eccc82 100644 (file)
@@ -3441,7 +3441,7 @@ class t3lib_TCEmain {
                                        // Create query for update:
                                $GLOBALS['TYPO3_DB']->exec_UPDATEquery($table, 'uid=' . intval($uid), $updateFields);
                                        // check for the localizations of that element
-                               $this->moveL10nOverlayRecords($table, $uid, $destPid, 0);
+                               $this->moveL10nOverlayRecords($table, $uid, $destPid, $destPid);
 
                                        // Call post processing hooks:
                                foreach ($hookObjectsArr as $hookObj) {