Fixed bug #12710: "Paste after" function destroys l10n-overlay relations (thanks...
authorSteffen Kamper <info@sk-typo3.de>
Tue, 24 Nov 2009 12:01:57 +0000 (12:01 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Tue, 24 Nov 2009 12:01:57 +0000 (12:01 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6508 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index 5bfbdde..f24b00d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
 
 2009-11-24  Steffen Kamper  <info@sk-typo3.de>
 
+       * Fixed bug #12710: "Paste after" function destroys l10n-overlay relations (thanks to Tolleiv Nietsch)
        * Fixed bug #12700: pageInfo shows wrong info on root page
 
 2009-11-24  Francois Suter  <francois@typo3.org>
index b992415..48dba56 100644 (file)
@@ -2827,7 +2827,7 @@ class t3lib_TCEmain       {
                                                if($language == 0) {
                                                                //repointing the new translation records to the parent record we just created
                                                        $overrideValues[$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']] = $theNewSQLID;
-                                                       $this->copyL10nOverlayRecords($table, $uid, $destPid, $first, $overrideValues, $excludeFields);
+                                                       $this->copyL10nOverlayRecords($table, $uid, $destPid<0 ? $tscPID : $destPid , $first, $overrideValues, $excludeFields);
                                                }
 
                                                return $theNewSQLID;