Page 1 of 1

How to keep my_view sections closed?

Posted: 05 Aug 2022, 16:23
by mushu
Mantis 2.25.2
Windows Server 2019
---
The previous versions of Mantis seemed to always keep the My View sections closed when closed and open when opened, such as Unassigned, Resolved, Monitored By Me, but lately I've noticed they never stay closed and I wonder what I did to break that?

How is that stored, is it done by browser cookies? So If I disable 3rd-party cookies will that stop working? I guess I need to know the method used to keep those frames "sticky" so i can figure out what I changed on my computer to break it.
TIA!

Re: How to keep my_view sections closed?

Posted: 06 Aug 2022, 08:14
by cas
Check out function is_collapsed() and collapse_cache_token() which both you will find in collapse_api.php :mrgreen:

Re: How to keep my_view sections closed?

Posted: 15 Aug 2022, 17:35
by mushu
So this appears to be a cookie problem then. That section of code stores any changes to the visibility of those accordion sections in a cookie. The problem is that they don't seem to be saving properly and I'm not sure how to go about troubleshooting this.

I deleted all cookies from the site and tried it again and it still won't save. I moved to a different browser that I never use, and it dose the same thing there, which makes it feel like a bug in Mantis, so I need to ask if anyone else is unable to have their "my view" open/close panels stay the way they set them when you refresh the webpage? Mine always default back to all panels open and it is annoying.

Re: How to keep my_view sections closed?

Posted: 16 Aug 2022, 06:41
by cas
it works for me Mushu, running the same version as you 8O

Re: How to keep my_view sections closed?

Posted: 16 Aug 2022, 16:10
by mushu
What browser are you using? I Tried in Chrome and Edge, disabled all extensions, and still won't maintain state when the webpage is refreshed.

Re: How to keep my_view sections closed?

Posted: 17 Aug 2022, 06:36
by cas
I have tested this with Vivaldi en Edge, both working as expected

Re: How to keep my_view sections closed?

Posted: 25 Oct 2022, 16:01
by mushu
Just to close this issue it appears it was a Chrome browser issue. After the next browser update it started working again. No idea what had happened but no time to try to figure that out just hoping it doesn't happen again...