#103012regiserPlugin breaks tca select item group
Description
Since the update from TYPO3 12.4.9 to 12.4.10. the function addTcaSelectItemGroup does not register the select item group correcty. When a plugin is registered, it overrides the configured tca select item group and provokes a PHP warning Core: Error handler (BE): PHP Warning: Array to string conversion in /var/www/html/vendor/typo3/cms-core/Classes/Localization/LanguageService.php line 178.
To reproduce – add TCA Select Item Group:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItemGroup(
'tt_content',
'list_type',
'dummy',
'Dummy'
);
=> Group is added to TCA configuration correctly
Register a plugin in that group:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Dummy',
'Dummy',
'Dummy',
'',
'dummy'
);
=> Group is overwritten by an array, therefore the label is not displayed
The attachment is a small dummy extension which demonstrates the problem and the screenshot shows the active TCA configuration with the label missing. The dropdown-field itself shows ‘Array’ as label or throws an exception (based on error handling configuration).
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.