[TYPO3-core] RFC: #17777: t3lib_extMgm::addToAllTCAtypes(..... , 'replace:xxx'); break when palette used in many types
Tolleiv.Nietsch
info at tolleiv.de
Sat Feb 26 21:50:08 CET 2011
This is a SVN patch request.
Type: Bugfix
Branches: trunk, 4.5
Bugtracker reference:
http://bugs.typo3.org/view.php?id=17777
Problem:
Hard to explain - see attached unit-test. The
t3lib_extMgm::addToAllTCAtypes() produces invalid output when used with
the 'replace:xxx' parameter in case the "xxx" field is on a palette and
if this palette is used in more than one type (e.g. the "layout" palette
in the pages table)
Solution:
Save the list of modified palettes and avoid that the fields are added
to the showitems in case this palette is used elsewhere too.
Ways/ steps to reproduce:
A) See the unit tests and how nice the break if the patch is missing ;)
B) Install templavoila, see that the pages.tx_templavoila_to field on
shortcut pages is present on the appearance tab (within a palette) and
also added to the extended tab.
Cheers
Tolleiv
--
Tolleiv Nietsch
www.tolleiv.de - www.aoemedia.de
Twitter: http://www.twitter.com/tolleiv
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 17777.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110226/23dc142d/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testcase.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110226/23dc142d/attachment.txt>
More information about the TYPO3-team-core
mailing list