Issue Bug Closed

#14995JSMENU showActive not working with entryLevel

helmuth antholzer 09/29/05, 13:02 updated 08/12/06, 14:19

Description

The showActive for the JSMENU does not work when setting a Entry Level . The problem is in tslib/class.tslib_menu.php

Line 246 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’]);

(issue imported from #M1508)

Reviews 0

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