View Issue Details

IDProjectCategoryView StatusLast Update
0036265mantisbtfeaturepublic2025-08-29 14:02
ReporterMantis4Ever Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionreopened 
Product Version2.27.1 
Target Version2.27.2 
Summary0036265: Search with collapsed filter section expands it
Description

Hello,
First thank you to all the Contributor of MantisBT. I love this tool for his simplicity and clarity.
It's my favorite tool to stay focus on my projects.

I post here besause It seems there is a regression on the field "reseach" since 2.27.1 (I came from 2.24)
When the headband is compact and i type a word to reseach an issue, the headband extend systematicaly instead of staying compact.

TagsNo tags attached.
Attached Files
image.png (78,233 bytes)   
image.png (78,233 bytes)   

Relationships

related to 0035645 resolvedcommunity Some widgets are not collapsible 
related to 0036269 assigneddregad Collapsed status for "Users monitoring" section is not persisted 

Activities

dregad

dregad

2025-08-19 03:08

developer   ~0070450

the headband extend systematicaly instead of staying compact

Sorry, but I was not able to reproduce the problem on this tracker, following indications from your screenshot. Can you ?

If not, then it's maybe caused by something specific to your installation, maybe a plugin or custom code.

Mantis4Ever

Mantis4Ever

2025-08-19 03:27

reporter   ~0070451

I tried to reproduce the problem, but I couldn't.
Sorry for the inconvenience. I don't know what happened to my computer. I haven't touched anything since yesterday, but it works now ...

dregad

dregad

2025-08-19 05:27

developer   ~0070452

Thanks for the feedback. Maybe a caching issue... Anyway good to hear it's resolved.

diedie2

diedie2

2025-08-19 11:50

reporter   ~0070456

Last edited: 2025-08-19 11:52

@dregad As I was being curious, I tested this here and noticed something. I made a video.
You'll see the bar expanding and collapsing very fast. Afterwards the search bar is gone.

UPDATE: i can not reproduce while being logged in. I made the gif while "anonymous" here

dregad

dregad

2025-08-19 12:48

developer   ~0070457

@diedie2 indeed I get the same behavior as anonymous you describe. I'm not sure it's the same issue than the one that @Mantis4Ever reported, but it could be.

Anyway it looks like a bug in the javascript. I'll reopen the issue.

dregad

dregad

2025-08-21 19:21

developer   ~0070458

When a section is collapsed, a cookie is used to temporarily store the collapsed status; this data is then persisted in a Token, but only for logged in users (not for Anonymous).

So when View Issues Page is displayed after applying the filter, the section's collapsed state is reset to its default value, causing the bad behavior.

While not a regression introduced by 0035645 (the problem was present before, as described by @Mantis4Ever), the change made things worse as the filters widgets were sometimes displayed on the expanded section.

dregad

dregad

2025-08-21 19:27

developer   ~0070459

PR https://github.com/mantisbt/mantisbt/pull/2145

dregad

dregad

2025-08-25 03:44

developer   ~0070465

@Mantis4Ever @diedie2 testing and feedback would be appreciated.

diedie2

diedie2

2025-08-25 04:00

reporter   ~0070466

I think you made a Monday-morning mistake somewhere :-)

collapsed.png (4,829 bytes)   
collapsed.png (4,829 bytes)   
open.png (85,843 bytes)   
open.png (85,843 bytes)   
dregad

dregad

2025-08-25 05:21

developer   ~0070467

I would not even have the Monday morning excuse as I did that Thursday last week ;-)

That being said, it works for me... Can you please check if you have

  • a ..._collapse_settings cookie
  • a Token of type 5 for the Anonymous user (mantis_tokens_table)

If yes, please check and report the values.
Then try to clear them: delete the cookie and the token (or if you want to be selective, remove filter=xxx in the cookie, and "filter": xxx from the JSON in the token's value column).
Does that changes anything ?

diedie2

diedie2

2025-08-25 05:42

reporter   ~0070468

I cleared all cookies releated to mantisbt.org and did a reload with ctrl+F5.

This is what I have after retest (wich still gives the same). Is this any of help?

image-2.png (60,639 bytes)   
image-2.png (60,639 bytes)   
dregad

dregad

2025-08-25 05:56

developer   ~0070469

Is this any of help?

Maybe - the screenshot says domain .mantisbt.org - if you're testing against this site then of course it won't work as the patch is not yet deployed as the pull request is not merged...

To test, it is necessary to install the code from the PR in a local MantisBT instance, or to apply the patch manually.

diedie2

diedie2

2025-08-26 09:04

reporter   ~0070475

my instance doesn't have acces for anonymous, sorry.
I always thought mantisbt ran on the most recent version? Is there another way I can test this?

Mantis4Ever

Mantis4Ever

2025-08-29 12:51

reporter   ~0070483

i will try to download the 2.27.1 version + the update but i dont use Github.
Let me time to see that

dregad

dregad

2025-08-29 14:02

developer   ~0070484

No need for Github. You can just download a ZIP including the patch from
https://github.com/dregad/mantisbt/archive/refs/heads/i36265-filters-collapse-anonymous.zip