Actions
Bug #100359
closedUsing TCA type "checkbox" in custom site configuration field throws error
Start date:
2023-03-30
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
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' => '', ]],
Actions