Follow-up to bugfix #2314 - moving records doesn't move translations (Thanks to Tolle...
authorSteffen Kamper <info@sk-typo3.de>
Sun, 22 Nov 2009 23:12:31 +0000 (23:12 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Sun, 22 Nov 2009 23:12:31 +0000 (23:12 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6489 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index b160ca5..fc97f77 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-11-22  Steffen Kamper  <info@sk-typo3.de>
 
+       * Follow-up to bugfix #2314 - moving records doesn't move translations (Thanks to Tolleiv Nietsch)
        * Fixed bug #12680: final adjustments to MediaCE
        * Fixed bug #11468: $altUrl parameter has no effect in t3lib_BEfunc::viewOnClick() (Thanks to Fabrizio Branca)
        * Fixed bug #12548: opendocs produce invalid HTML
index 790986e..df92b59 100644 (file)
@@ -3799,8 +3799,10 @@ class t3lib_TCEmain      {
         * @return      void
         */
        function moveL10nOverlayRecords($table, $uid, $destPid) {
-                       //there's no need to perform this for page-records
-               if ($table == 'pages') return;
+                       //there's no need to perform this for page-records or not localizeable tables
+               if (!t3lib_BEfunc::isTableLocalizable($table) || !empty($GLOBALS['TCA'][$table]['ctrl']['transForeignTable'])) {
+                       return;
+               }
                t3lib_div::loadTCA($table);
 
                $l10nRecords = t3lib_BEfunc::getRecordsByField($table, $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'], $uid);