Bug #82843

TCA: localized `SelectSingleElement` selects wrong option

Added by Romain Canon over 1 year ago. Updated 8 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2017-10-23
Due date:
% Done:

0%

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.

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

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


Related issues

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 record New 2016-07-26

History

#1 Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54466

#2 Updated by Benni Mack over 1 year ago

  • Sprint Focus set to On Location Sprint

#3 Updated by Mathias Brodala over 1 year ago

  • Sprint Focus deleted (On Location Sprint)

#4 Updated by Christian Kuhn 8 months ago

  • Status changed from Under Review to New

#5 Updated by Andreas Krämer 4 months ago

  • Related to Bug #77257: The selection of a selectbox with the l10n_display type of defaultAsReadonly in TCA is wrong for a localized record added

Also available in: Atom PDF