Actions
Bug #82843
closedTCA: localized `SelectSingleElement` selects wrong option
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2017-10-23
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
tca, selectsingle, localization
Complexity:
Is Regression:
Sprint Focus:
Description
When working with a single select field in the form engine, with its localization mode setting set to defaultAsReadonly
, the selected value from the localized children elements will not be correct.
With the following TCA configuration:
'event' => [
'label' => "Select Single Element",
'l10n_mode' => 'exclude',
'l10n_display' => 'defaultAsReadonly',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
['Label A', 'A'],
['Label B', 'B'],
],
],
],
I get the following rendering:
Root element
Translated element
In the translated element, the selected value should be Label B
.
Files
Actions