Project

General

Profile

Actions

Bug #82843

closed

TCA: localized `SelectSingleElement` selects wrong option

Added by Romain Canon over 6 years ago. Updated about 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 #1

Updated by Gerrit Code Review over 6 years 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

Actions #2

Updated by Benni Mack over 6 years ago

  • Sprint Focus set to On Location Sprint
Actions #3

Updated by Mathias Brodala about 6 years ago

  • Sprint Focus deleted (On Location Sprint)
Actions #4

Updated by Christian Kuhn over 5 years ago

  • Status changed from Under Review to New
Actions #5

Updated by Andreas Krämer about 5 years 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
Actions #6

Updated by Gerrit Code Review about 4 years 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/c/Packages/TYPO3.CMS/+/63722

Actions #7

Updated by Benni Mack about 4 years ago

  • Related to Bug #87858: Localized selectSingle field does not get disabled with allowLanguageSynchronization = true added
Actions #8

Updated by Gerrit Code Review about 4 years ago

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

Actions #9

Updated by Benni Mack about 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Gerrit Code Review about 4 years ago

  • Status changed from Resolved to Under Review

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

Actions #11

Updated by Benni Mack about 4 years ago

  • Status changed from Under Review to Resolved
Actions #12

Updated by Benni Mack about 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF