Page 1 of 1

Sidebar Main Menu: Collapse Setting isn't stored correctly for users

Posted: Feb 07, 2019 7:36 am
by Onetaluko
Hello,

I've got issues with the sidebar the left main menu of mantis.
In my version mantis 2.13.1 the sidebar always stays in the small view.
Tested in chrome and firefox on a desktop wide window.

It also seemed incorrect on https://www.mantisbt.org/bugs/my_view_page.php with mantis version 2.20.0
Here the sidebar always collapses back to the big menu where you can see icon and textlink of a menu entry.

In my point of view the cookie MANTIS_collapse_settings is not set and cleared correctly.

When you comment this line out and set the cookie manually the behavior works fine.

Code: Select all

#file: core/collapse_api.php
# line 232
gpc_clear_cookie( 'MANTIS_collapse_settings' );
In my mantis version there is no cookie MANTIS_collapse_settings at all. It always get deleted by refreshing the page or navigating to another page.

Could someone please help me to fix it?
Or could someone please tell me what I have to do get the standard behavior like its on mantisbt.org/bugs?

Til now I couldn't find the table, where the data is stored for the user.

Thank you

Re: Sidebar Main Menu: Collapse Setting isn't stored correctly for users

Posted: Feb 07, 2019 7:56 am
by atrol
This is fixed in 2.19.0
https://www.mantisbt.org/bugs/view.php?id=24976

It will work just if you are logged in.
Anonymous user does not work.

Re: Sidebar Main Menu: Collapse Setting isn't stored correctly for users

Posted: Feb 07, 2019 8:08 am
by Onetaluko
Thank you atrol for the information! :D