Commit 214d2667 authored by Oliver Hader's avatar Oliver Hader Committed by Christian Kuhn
Browse files

[BUGFIX] Copying a record with translation and IRRE relation fails

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: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog's avatarSusanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog's avatarSusanne Moog <susanne.moog@typo3.org>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent b477adeb
......@@ -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',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment