Fixed bug #13818: tcemain versionSwap might break pages_language_overlay relations...
authorSusanne Moog <typo3@susannemoog.de>
Fri, 4 Jun 2010 10:04:57 +0000 (10:04 +0000)
committerSusanne Moog <typo3@susannemoog.de>
Fri, 4 Jun 2010 10:04:57 +0000 (10:04 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7803 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index 1471090..7d8ea3f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-04  Susanne Moog  <typo3@susannemoog.de>
+
+       * Fixed bug #13818: tcemain versionSwap might break pages_language_overlay relations (thanks to Tolleiv Nietsch)
+       
 2010-06-03  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #14397: htmlArea RTE: Incorrect encoding of some labels when BE is not utf-8
index 8a9558b..ee91c8d 100644 (file)
@@ -4777,7 +4777,7 @@ class t3lib_TCEmain       {
                                                                                        $keepFields[] = $TCA[$table]['ctrl']['sortby'];
                                                                                }
                                                                                        // l10n-fields must be kept otherwise the localization will be lost during the publishing
-                                                                               if ($TCA[$table]['ctrl']['transOrigPointerField']) {
+                                                                               if (!isset($TCA[$table]['ctrl']['transOrigPointerTable']) && $TCA[$table]['ctrl']['transOrigPointerField']) {
                                                                                        $keepFields[] = $TCA[$table]['ctrl']['transOrigPointerField'];
                                                                                }