diff --git a/typo3/sysext/core/Classes/DataHandling/DataHandler.php b/typo3/sysext/core/Classes/DataHandling/DataHandler.php index a9028ee114d57e9fd0c20b7596c9d75b8395a501..2e1429a9232b7983f64c568a4ba33f76fe419898 100644 --- a/typo3/sysext/core/Classes/DataHandling/DataHandler.php +++ b/typo3/sysext/core/Classes/DataHandling/DataHandler.php @@ -3660,7 +3660,7 @@ class DataHandler implements LoggerAwareInterface $recordLocalization = BackendUtility::getRecordLocalization($item['table'], $item['id'], $language); if ($recordLocalization) { $dbAnalysis->itemArray[$index]['id'] = $recordLocalization[0]['uid']; - } elseif ($this->isNestedElementCallRegistered($item['table'], $item['id'], 'localize') === false) { + } elseif ($this->isNestedElementCallRegistered($item['table'], $item['id'], 'localize-' . (string)$language) === false) { $dbAnalysis->itemArray[$index]['id'] = $this->localize($item['table'], $item['id'], $language); } } @@ -4297,11 +4297,11 @@ class DataHandler implements LoggerAwareInterface { $newId = false; $uid = (int)$uid; - if (!$GLOBALS['TCA'][$table] || !$uid || $this->isNestedElementCallRegistered($table, $uid, 'localize') !== false) { + if (!$GLOBALS['TCA'][$table] || !$uid || $this->isNestedElementCallRegistered($table, $uid, 'localize-' . (string)$language) !== false) { return false; } - $this->registerNestedElementCall($table, $uid, 'localize'); + $this->registerNestedElementCall($table, $uid, 'localize-' . (string)$language); if (!$GLOBALS['TCA'][$table]['ctrl']['languageField'] || !$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']) { $this->newlog('Localization failed; "languageField" and "transOrigPointerField" must be defined for the table ' . $table, SystemLogErrorClassification::USER_ERROR); return false;