Bug #81314 » data-map-processor-loop-detection-language-fragment.patch
typo3/sysext/core/Classes/DataHandling/DataHandler.php | ||
---|---|---|
$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 {
|
||
... | ... | |
{
|
||
$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')
|
- « Previous
- 1
- 2
- Next »