The Joomla! Forum ™



Forum rules


Please use the official Bug Tracker to report a bug: http://joomlacode.org/gf/project/joomla ... er_id=8103



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun May 27, 2012 11:50 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Jul 23, 2011 11:06 am
Posts: 7
If used start level paramter > 1 in the menu module, the menu (items) corresponding to this module are not displayed on pages, that are in the other menus.

This is due to this condition in J2.5.4/modules/mod_menu/helper.php in line 58:
Code:
|| ($start > 1 && !in_array($item->tree[$start-2], $path))

all level > 1 items are become unsettled in line 60:
Code:
unset($items[$i]);

Is it safe to remove this condition?


Top
 Profile  
 
PostPosted: Mon May 28, 2012 12:06 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Jul 23, 2011 11:06 am
Posts: 7
The same bug in previous (line 57) criteria:
Code:
|| (!$showAll && $item->level > 1 && !in_array($item->parent_id, $path))


If another menu is active, the path never contains parent_id of all processed menu items. :(


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 



Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group