Bug #103012
closedregiserPlugin breaks tca select item group
0%
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
Updated by Oliver Bartsch 10 months ago
- Status changed from New to Closed
Hi, thanks for reporting. This bug has already been fixed with #102841 and will be released with the next maintenance release, scheduled for February 13, 2024.
Best, Oli
Updated by Oliver Bartsch 10 months ago
- Is duplicate of Bug #102841: Array to string conversion for list_type itemGroups "header" added
Updated by Oliver Bartsch 10 months ago
- Related to Bug #102842: PHP Warning: Array to string conversion when group id does not exist for plugin added
Updated by Oliver Bartsch 10 months ago
- Is duplicate of deleted (Bug #102841: Array to string conversion for list_type itemGroups "header")
Updated by Oliver Bartsch 10 months ago
- Is duplicate of Bug #102842: PHP Warning: Array to string conversion when group id does not exist for plugin added