Actions
Bug #36616
closedTYPO3 4.7 sectionIndex not working correctly on multilanguage site
Start date:
2012-04-26
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
4.7
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
I have set up a site with two languages. I added a content element sitemap (section index). The sectionIndex does not respect sys_language_uid and and all elements are shown, also the ones from alternative language.
Changing the following in function sectionIndex in file class.tslib_menu.php should resolve the problem.
From
if (!$pid) { $pid = $this->id; if ($GLOBALS['TSFE']->sys_language_uid && count($this->sys_page->getPageOverlay($pid))) { $where .= ' AND sys_language_uid=' . intval($GLOBALS['TSFE']->sys_language_uid); } else { $where .= ' AND sys_language_uid=0'; } }
to
if (!$pid) { $pid = $this->id; } if ($GLOBALS['TSFE']->sys_language_uid && count($this->sys_page->getPageOverlay($pid))) { $where .= ' AND sys_language_uid=' . intval($GLOBALS['TSFE']->sys_language_uid); } else { $where .= ' AND sys_language_uid=0'; }
Actions