Actions
Bug #96444
closedselectCheckBox: Not possible to use descriptions and authMode simultaneously anymore
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.
Actions