[TYPO3-core] RFC: #16601 tslib_menu and tslib_Xmenu calls stdwrap on $GLOBALS['TSFE']->cObj instead of this->parent_cObj

Thomas Maroschik tmaroschik at dfau.de
Mon Nov 29 14:02:35 CET 2010


Hi,

This is a SVN patch request.

Type: Bugfix / Clean up

BT reference: http://bugs.typo3.org/view.php?id=16601

Situation:
When having content elements of type "menu/sitemap" and using the 
subtype "Menu of these pages" then tslib_menu parses the values of 
config special.value with tslib_content.

Problem:
tslib_menu and tslib_Xmenu calls stdwrap on $GLOBALS['TSFE']->cObj 
instead of $this->parent_cObj which is not necessarily the same. 
tslib_content is not a singleton. $GLOBALS['TSFE']->cObj->data holds the 
data of the current page, whereas $this->parent_cObj->data holds the 
data of the calling content element or page

Solution:
Replace every occurence of $GLOBALS['TSFE']->cObj with $this->parent_cObj.
Attached Patch fixes the Problem.

Greetings

Tom
-- 
___________________________
Thomas Maroschik
DFAU
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tslib_menu_cObj_reference_16601.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101129/0e8b194e/attachment.txt>


More information about the TYPO3-team-core mailing list