Bug #20962

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

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

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

0%

Estimated time:
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)


Files

0011834.patch (2.09 KB) 0011834.patch Administrator Admin, 2009-08-31 18:33
0011834_v2.patch (6.19 KB) 0011834_v2.patch Administrator Admin, 2009-08-31 19:39
0011834_v2_ws.patch (3.41 KB) 0011834_v2_ws.patch 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 tabsClosedOliver Hader2008-12-04

Actions
#1

Updated by Oliver Hader over 11 years ago

Committed to SVN Trunk (rev. 6012)

Also available in: Atom PDF