Commit c4b9dbda authored by Christian Eßl's avatar Christian Eßl Committed by Benni Mack
Browse files

[BUGFIX] Do not try to persist fieldNames of type "none"

If a TCA field config of type="none" with the l10n_mode="exclude" is
present, the DataHandler will try to persist the field when saving a
translated version of the record, even though fields of type="none"
must not be persisted.

Resolves: #87781
Releases: master, 9.5
Change-Id: Ie99495ff95fcf1ceaac0c5d050653e21d3af2afd
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62980


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent 63b03bfc
......@@ -1389,7 +1389,9 @@ class DataMapProcessor
}
foreach ($GLOBALS['TCA'][$tableName]['columns'] as $fieldName => $configuration) {
if (($configuration['l10n_mode'] ?? null) === 'exclude') {
if (($configuration['l10n_mode'] ?? null) === 'exclude'
&& ($configuration['config']['type'] ?? null) !== 'none'
) {
$localizationExcludeFieldNames[] = $fieldName;
}
}
......
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