Bug #100359
closedUsing TCA type "checkbox" in custom site configuration field throws error
100%
Description
When using the type "checkbox" in a custom site configuration, like:
'config' => [ 'type' => 'check', 'renderType' => 'checkboxToggle', 'items' => [[ 0 => '', 1 => '', ]], ]
the following error is thrown:
Item 0 of field <the-field> of TCA table site has no label
I assume, the TCA migrations are not applied.
An example usage can be found in EXT:matomo_integration with version 1.5.0.
A workaround to stay compatible with TYPO3 v11 and v12 is:
'items' => [[ 0 => '', 1 => '', 'label' => '', 'value' => '', ]],
Updated by Chris Müller over 1 year ago
- Related to Feature #99739: Associative array keys for TCA items added
Updated by Gerrit Code Review over 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78333
Updated by Nikita Hovratov over 1 year ago
Thanks, yes there was no TCA migration for site TCA yet. This affects all new TCA types / deprecations.
Updated by Gerrit Code Review over 1 year ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78333
Updated by Nikita Hovratov over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset dde27dccc18889cafb4cbc45d525f22a2b325c00.