Project

General

Profile

Actions

Bug #73490

closed

ExtensionManagementUtility::addToAllTCAtypes cannot add fields which appear anywhere in Labels/PaletteNames etc

Added by Robert Vock about 8 years ago. Updated over 5 years ago.

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #76692: Wrong check for showitem fields in ExtensionManagementUtility::addToAllTCAtypesClosed2016-06-19

Actions
Actions

Also available in: Atom PDF