#20962Field handling API in t3lib_extMgm does not check for duplicates on insertion and runs superflouos insertions
Description
The method t3lib_extMgm::addToAllTCAtypes() does not check for duplicates on insertion. Furthermore t3lib_extMgm::addFieldsToAllPalettesOfField() runs superflouos insertions even if an accordant palette was already processed.
Examples:
t3lib_extMgm::addToAllTCAtypes(‘table’, ‘fieldA, fieldA, fieldB’);
will add ‘fieldA, fieldA, fieldB’ and thus ‘fieldA’ twice to the rendering definition.
t3lib_extMgm::addFieldsToAllPalettesOfField(‘table’, ‘fieldWithPalette’, ‘fieldA, fieldB’);
will add some superflouos commas field list of the palette.
(issue imported from #M11834)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.