[BUGFIX] Fix translation moving in workspaces
authorTolleiv Nietsch <info@tolleiv.de>
Sun, 12 Feb 2012 05:01:55 +0000 (06:01 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Sat, 13 Oct 2012 11:07:20 +0000 (13:07 +0200)
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

Change-Id: Id5d03fbeb42a6aa147f40629f368621417ccd59c
Fixes: #33592
Releases: 4.5, 4.6, 4.7, 4.8
Reviewed-on: http://review.typo3.org/13009
Reviewed-by: Stefan Neufeind
Reviewed-by: Wouter Wolters
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
t3lib/class.t3lib_tcemain.php

index d4a2f39..350673e 100644 (file)
@@ -3617,7 +3617,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) {