[TYPO3-core] RFC: Bug #9897: Extending palettes and fields to be displayed in back-end forms mixes up tabs

Oliver Hader oliver at typo3.org
Thu Dec 4 18:05:11 CET 2008


This is a SVN patch request.

Problem:
A misbehaviour in t3lib_extMgm results in missing tabs when TCA types or
palettes definitions get extended. Imagine the following initial field list:
"fieldA, --div--;General, fieldB, --div--;Access, fieldC"

After extending this list via t3lib_extMgm calls, you'd get something
like this - the second tab item is missing:
"fieldA, --div--;General, fieldB, fieldC"

Solution:
The reason is, that a check against duplicate field names does not work
for multiple "--div--" or "--palette--" items as it is implemented now.
Thus the current scheme using an associative array has to be changed to
an indexed array that keeps the order of the intitial items/fields.

Comments:
Additionally there are some more changes concerning the naming. All
occurrences of "field" or "fieldList" were changed to "items" oder
"itemList". These changes are not required for the functionality but are
good to understand the structure and it's easier/possible to do this in
alpha phase than later on.

Bugtracker references:
http://bugs.typo3.org/view.php?id=9897

Branch: Trunk


olly
-- 
Oliver Hader
TYPO3 4.3 Release Manager
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009897.patch
Type: text/x-diff
Size: 9002 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081204/f9a60da8/attachment-0001.patch 


More information about the TYPO3-team-core mailing list