Project

General

Profile

Actions

Bug #93331

closed

Rendering of selectCheckBox TCA is broken with item descriptions

Added by Julian Mair over 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2021-01-20
Due date:
% Done:

100%

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

Description

I want to add a description to the corresponding items of the selectCheckBox input type. If i proceed like in the doku ref. (see here: https://docs.typo3.org/m/typo3/reference-tca/10.4/en-us/ColumnsConfig/Type/selectCheckBox.html#items ), then the output is somehow grouped.

Here my minimal reproduction snippet (add it somewhere in a tca php file):

'column' => [
    'exclude' => true,
    'label' => 'test title',
    'description' => 'test descr',
    'config' => [
        'type' => 'select',
        'renderType' => 'selectCheckBox',
        'items' => [
            [
                'item title 1',
                '1',
                '',
                'item desc 1',
            ],
            [
                'item title 2',
                '2',
                '',
                'item desc 2',
            ],
        ],
    ],
],

Preview:

if i insert a null on the 4th position, then the grouping bug is fixed, but no description is shown.

[
    'item title 1',
    '1',
    '',
    null,
    'item desc 1',
],

Preview:

i think it has to do with this:
https://review.typo3.org/c/Packages/TYPO3.CMS/+/63889


Files


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #92383: selectCheckBox with description renders multiple select groupsClosed2020-09-23

Actions
Actions

Also available in: Atom PDF