Skip to content
Snippets Groups Projects
Commit e82dc97f authored by alexander.vogt's avatar alexander.vogt Committed by Christian Kuhn
Browse files

[BUGFIX] Properly localize placeholder

Due to the introduction of the "language" TCA type,
the column processing of TCA language fields in
TcaSelectItems->addData was skipped and therefore
the array conversion through the "processDatabaseFieldValue"
method was no longer applied.

The placeholder processing in TcaInputPlaceholders
however expected the tables  language field to be
an array. This is now fixed.

Resolves: #99446
Releases: main, 11.5
Change-Id: I20f456ba7066c19d2eded00079e58c4c64521eeb
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77265


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 96c737fd
Branches
Tags
No related merge requests found
......@@ -140,7 +140,7 @@ class TcaInputPlaceholders implements FormDataProviderInterface
if (!empty($GLOBALS['TCA'][$result['tableName']]['ctrl']['languageField'])
&& isset($result['databaseRow'][$GLOBALS['TCA'][$result['tableName']]['ctrl']['languageField']])
) {
$relatedFormData['currentSysLanguage'] = $result['databaseRow'][$GLOBALS['TCA'][$result['tableName']]['ctrl']['languageField'] ?? null][0] ?? '';
$relatedFormData['currentSysLanguage'] = $result['databaseRow'][$GLOBALS['TCA'][$result['tableName']]['ctrl']['languageField']];
}
$value = $this->getPlaceholderValue($fieldNameArray, $relatedFormData, $recursionLevel + 1);
}
......
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