Skip to content
Snippets Groups Projects
Commit 1394a4cf authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Benni Mack
Browse files

[TASK] Simplify checkbox items TCA

TCA shares same keys across different types,
and so does "items" with type check, radio
and select. The value is usually set for the
array key "1". But type check is special in
that regard: the value is stored as a bitset.
This means, the value is completely unused
and shall not be provided for checkboxes.

1. All occurrences of "items => ['1' => '']"
   removed.

2. When checkboxes only have 1 item and no
   configuration whatsoever, "items" can be
   omitted. These constructs are gone now:

   'items' => [
       [
            0 => '',
            1 => '',
       ],
    ]

Resolves: #95876
Releases: master
Change-Id: I3deb96498e3afb8823cd6397e57e268c68774276
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72056


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 47ba4aea
No related merge requests found
Showing
with 8 additions and 139 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment