[BUGFIX] Copying a record with translation and IRRE relation fails
[Packages/TYPO3.CMS.git] / 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',