Actions
Bug #103012
closedregiserPlugin breaks tca select item group
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2024-02-01
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
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).
Files
Actions