Project

General

Profile

Bug #45254 » issue_45254_v1.patch

Patch derived from suggested solution - Thorsten Kahler, 2013-02-08 10:13

View differences:

typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php (revision )
}
$recs = $this->sys_page->getMenu($uid, 'uid,pid,doktype,mount_pid,mount_pid_ol,nav_hide,shortcut,shortcut_mode,l18n_cfg');
$hasSubPages = FALSE;
$bannedUids = $this->getBannedUids();
foreach ($recs as $theRec) {
// no valid subpage if the document type is excluded from the menu
if (\TYPO3\CMS\Core\Utility\GeneralUtility::inList($this->doktypeExcludeList, $theRec['doktype'])) {
......
// are requiring a valid overlay but it doesn't exists
$hideIfNotTranslated = \TYPO3\CMS\Core\Utility\GeneralUtility::hideIfNotTranslated($theRec['l18n_cfg']);
if ($GLOBALS['TSFE']->sys_language_uid && $hideIfNotTranslated && !$theRec['_PAGES_OVERLAY']) {
continue;
}
// No valid subpage if the subpage is banned by excludeUidList
if (in_array($theRec['uid'], $bannedUids)) {
continue;
}
$hasSubPages = TRUE;
(3-3/3)