Issue Bug Closed

#17186JSMENU showActive not working with entryLevel (was 1508)

Bjrn Kraus 04/03/07, 23:28 updated 07/02/10, 11:18

Description

The showActive setting for the JSMENUITEM does not work when setting entryLevel. The problem is in tslib/class.tslib_menu.php

Line 2792 (in TYPO3 4.1.1) is the the Problem because it does not check for an entryLevel.
$active = ($levelConf[‘showActive’] && $data[‘uid’] == $this->tmpl->rootLine[$count][‘uid’]);

This can be fixed easyly using the following line

$active = ($levelConf[‘showActive’] && $data[‘uid’] == $this->tmpl->rootLine[$count+$this->conf[‘entryLevel’]][‘uid’]);

This bug has formerly reported for TYPO3 3.7 (see http://bugs.typo3.org/view.php?id=1508) but has never been solved.
(issue imported from #M5357)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.