Project

General

Profile

Actions

Bug #82843

closed

TCA: localized `SelectSingleElement` selects wrong option

Added by Romain Canon about 7 years ago. Updated over 4 years ago.

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

select-single-element-02.png (1.45 KB) select-single-element-02.png Romain Canon, 2017-10-23 13:57
select-single-element-01.png (2.33 KB) select-single-element-01.png Romain Canon, 2017-10-23 13:57

Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #77257: The selection of a selectbox with the l10n_display type of defaultAsReadonly in TCA is wrong for a localized recordClosed2016-07-26

Actions
Related to TYPO3 Core - Bug #87858: Localized selectSingle field does not get disabled with allowLanguageSynchronization = trueNew2019-03-07

Actions
Actions

Also available in: Atom PDF