Hello,
I already reported my discovery in the forum. But here again for the formal way.
The problem:
If you want to use the feature "cookie" on a menu, it will not work.
Test Case:
Open up a menus sub structure, click on a link, and the menu is collapsed on the new site.
Reason:
tiki wiki checks if the menu cookie "menu.menu_structure_pageID" is existing and if so, it looks if it is opened or closed.
But, the cookies name is not "menu.menu" but "menu.menus".
Where is the problem:
/lib/menubuilder/menulib.php:468
$ck = getCookie('menu'.$params'id'.'__'.$option'position', 'menu');
should be changed into:
$ck = getCookie('menus_'.$params'id'.'__'.$option'position', 'menu');
Another problem is, that this only works for a flat hierachie (like in the bootstrap menu), but if you want to work properly in all menus, you have to change the else if statement too.
Same file, line 464:
} elseif ($option'type' == 's') {
on every lower level, the option.type is not set. We commented it out, so we have a simple } else { and it works.
Fixed the second part of this bug report (eliminate checking for option type) with this commit.
Hopefully fixed the first part in r56665
I'm guessing this is fixed and am closing. Please re-open if any issues.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |