Bug #20962

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

Added by Oliver Hader almost 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-08-31
Due date:
% Done:

0%

TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

0011834.patch View (2.09 KB) Administrator Admin, 2009-08-31 18:33

0011834_v2.patch View (6.19 KB) Administrator Admin, 2009-08-31 19:39

0011834_v2_ws.patch View (3.41 KB) Administrator Admin, 2009-08-31 19:39


Related issues

Related to TYPO3 Core - Bug #19683: Extending palettes and fields to be displayed in back-end forms mixes up tabs Closed 2008-12-04

History

#1 Updated by Oliver Hader over 10 years ago

Committed to SVN Trunk (rev. 6012)

Also available in: Atom PDF