Actions
Bug #24232
closedtslib_menu and tslib_Xmenu calls stdwrap on $GLOBALS['TSFE']->cObj instead of this->parent_cObj
Start date:
2010-11-29
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
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.
(issue imported from #M16601)
Files
Actions