[BUGFIX] Copying a record with translation and IRRE relation fails 31/51631/3
authorOliver Hader <oliver@typo3.org>
Fri, 10 Feb 2017 18:07:16 +0000 (19:07 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 10 Feb 2017 19:05:02 +0000 (20:05 +0100)
The data-map processing for "allowLanguageSynchronization" tries to
resolve language dependencies for IRRE child records, without doing
a check wether the the child table does support translation at all.
In a result the built database query fails.

Resolves: #79746
Releases: master
Change-Id: I846c9e47346f5a4d2eb05e3eee639ba179a06419
Reviewed-on: https://review.typo3.org/51631
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php

index 89a1d8f..e720384 100644 (file)
@@ -567,6 +567,10 @@ class DataMapProcessor
             $tableName = 'pages_language_overlay';
         }
 
+        if (!BackendUtility::isTableLocalizable($tableName)) {
+            return [];
+        }
+
         $fieldNames = [
             'uid' => 'uid',
             'l10n_state' => 'l10n_state',
@@ -613,6 +617,10 @@ class DataMapProcessor
             $tableName = 'pages_language_overlay';
         }
 
+        if (!BackendUtility::isTableLocalizable($tableName)) {
+            return [];
+        }
+
         $fieldNames = [
             'uid' => 'uid',
             'l10n_state' => 'l10n_state',