Issue Bug Closed

#20962Field handling API in t3lib_extMgm does not check for duplicates on insertion and runs superflouos insertions

Oliver Hader 08/31/09, 18:11 updated 08/06/10, 13:28

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.