Project

General

Profile

Actions

Bug #96444

closed

selectCheckBox: Not possible to use descriptions and authMode simultaneously anymore

Added by Nikita Hovratov over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2021-12-31
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Since the introduction of itemGroups in TYPO3 v10, the index for descriptions has shifted from 3 to 4.
Before that, the index 4 was used for the authMode option, to explicitly deny or allow single items.
Now the index 4 is used for two completely separate purposes.

Example:

        'select_checkbox_1' => [
            'exclude' => 1,
            'label' => 'select_checkbox_1 description',
            'description' => 'field description',
            'config' => [
                'type' => 'select',
                'renderType' => 'selectCheckBox',
                'authMode' => 'individual',
                'items' => [
                    ['foo 1', 1, '', '', 'EXPL_ALLOW'],
                    ['foo 2', 2, '', '', 'Description2'],
                    ['foo 3', 3, '', '', 'Description3'],
                ],
            ],
        ],

When the first item is visble for the editor, the description will be "EXPL_ALLOW", which is not desireable. There is no way to define another description either, because the index is already occupied.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #91008: Add grouping and sorting for TCA select itemsClosedBenni Mack2020-04-12

Actions
Actions

Also available in: Atom PDF