Actions
Bug #73490
closedExtensionManagementUtility::addToAllTCAtypes cannot add fields which appear anywhere in Labels/PaletteNames etc
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2016-02-16
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
If you try to add a field to the showitem-definition using ExtensionManagementUtility::addToAllTCAtypes and this field matches with strpos, it is not added:
https://github.com/TYPO3/TYPO3.CMS/blob/3c5865b61da2125ffee75cbe05e636f74851b987/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php#L304
Example:
ExtensionManagementUtility::addToAllTCAtypes('tt_content', 'image', 'textmedia', 'replace:assets');
'image' is contained within '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.imagelinks;imagelinks,' and will not be added
Actions