t3lib_extMgm::addToAllTCAtypes and specific position removes tabs
The following code should add a new field "testfield" right after the hidden field of tt_content:
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)
#1 Updated by Michael Stucki about 11 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.