diff --git a/typo3/sysext/core/Classes/DataHandling/DataHandler.php b/typo3/sysext/core/Classes/DataHandling/DataHandler.php index f2274500bf..ae0b29cee0 100644 --- a/typo3/sysext/core/Classes/DataHandling/DataHandler.php +++ b/typo3/sysext/core/Classes/DataHandling/DataHandler.php @@ -3939,7 +3939,7 @@ class DataHandler $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' . $language) === false) { if ($localizingNonManyToManyFieldReferences || $localizeChildren) { $dbAnalysis->itemArray[$index]['id'] = $this->localize($item['table'], $item['id'], $language); } else { @@ -4733,11 +4733,11 @@ class DataHandler { $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' . $language) !== false) { return false; } - $this->registerNestedElementCall($table, $uid, 'localize'); + $this->registerNestedElementCall($table, $uid, 'localize' . $language); if ((!$GLOBALS['TCA'][$table]['ctrl']['languageField'] || !$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'] || $table === 'pages_language_overlay')