Bug #20178
closedt3lib_extMgm::addToAllTCAtypes and specific position removes tabs
0%
Description
The following code should add a new field "testfield" right after the hidden field of tt_content:
t3lib_extMgm::addToAllTCAtypes('tt_content','testfield','','after:hidden');
The code will successfully add the new field, however it will remove all tabs after the first two items (e.g. "access" in case of tt_content).
(issue imported from #M10688)
Updated by Michael Stucki over 15 years ago
The reason for the problem is that --div-- and --palette-- fields are allowed multiple times on the same table. However, t3lib_extMgm uses this value as field name at some places.
The bug is fixed by appending a unique number to the field name - and stripping it again when being accessed.
Updated by Michael Stucki over 15 years ago
Actually this is already fixed - I just didn't notice because I'm using a backport of t3lib_extMgm for TYPO3 4.2.