View Issue Details

IDProjectCategoryView StatusLast Update
0036149mantisbtjavascriptpublic2025-08-19 06:03
ReporterThecaTTony Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
PlatformlinuxOSubuntuOS Version24.04 LTS
Product Version2.27.1 
Summary0036149: Cookie not set to keep filters collapsed
Description

Hello, since a few days, the drop-down filters remain expanded without respect when they are collapsed in the view_all_bug_page.php page.

After comparing the cookies set in the mantis instance itself and this one, I could observe that it would be missing: “$g_cookie_prefix_collapse_settings” with value “filter:1”

This started happening overnight, with no changes made to the mantis server, the only possible change was that the browser was updated.

Steps To Reproduce
  • Open view_all_bug_page.php
  • Collapse the filter list
  • Reload the page
  • Filter list is displayed
Additional Information

Tested with:

Vivaldi 7.5.3735.54 (Stable channel) (64 bits)
Edge 138.0.3351.83 (64 bits)

Related settings:
$g_cookie_prefix = '__Host-BPMS';
$g_cookie_time_length = 60 60 24 * 30;
$g_allow_permanent_cookie = 1;

If I collapse the filters and expand it again, the following error appears in the browser console (attached screenshot):

Uncaught TypeError: t_cookie.replace is not a function
at HTMLDivElement.<anonymous> (common.js:141:23)
at HTMLDivElement.dispatch (jquery-2.2.4.min.js:3:7537)
at r.handle (jquery-2.2.4.min.js:3:5620)
at Object.trigger (jquery-2.2.4.min.js:4:4818)
at HTMLDivElement.<anonymous> (jquery-2.2.4.min.js:4:5328)
at n.each (jquery-2.2.4.min.js:2:2861)
at n.fn.init.each (jquery-2.2.4.min.js:2:845)
at n.fn.init.trigger (jquery-2.2.4.min.js:4:5304)
at HTMLDivElement.<anonymous> (ace.min.js:20:2915)
at d.complete (jquery-2.2.4.min.js:3:27958)
(anonymous) @ common.js:141
dispatch @ jquery-2.2.4.min.js:3
r.handle @ jquery-2.2.4.min.js:3
trigger @ jquery-2.2.4.min.js:4
(anonymous) @ jquery-2.2.4.min.js:4
each @ jquery-2.2.4.min.js:2
each @ jquery-2.2.4.min.js:2
trigger @ jquery-2.2.4.min.js:4
(anonymous) @ ace.min.js:20
d.complete @ jquery-2.2.4.min.js:3
i @ jquery-2.2.4.min.js:2
fireWith @ jquery-2.2.4.min.js:2
i @ jquery-2.2.4.min.js:3
n.fx.tick @ jquery-2.2.4.min.js:3
setInterval
n.fx.start @ jquery-2.2.4.min.js:3
n.fx.timer @ jquery-2.2.4.min.js:3
_a @ jquery-2.2.4.min.js:3
g @ jquery-2.2.4.min.js:3
dequeue @ jquery-2.2.4.min.js:3
(anonymous) @ jquery-2.2.4.min.js:3
each @ jquery-2.2.4.min.js:2
each @ jquery-2.2.4.min.js:2
queue @ jquery-2.2.4.min.js:3
animate @ jquery-2.2.4.min.js:3
n.fn.<computed> @ jquery-2.2.4.min.js:3
toggle @ ace.min.js:20
(anonymous) @ ace.min.js:20
dispatch @ jquery-2.2.4.min.js:3
r.handle @ jquery-2.2.4.min.js:3

TagsNo tags attached.
Attached Files
console_error.png (30,858 bytes)   
console_error.png (30,858 bytes)   
cookies_official_mantis.png (64,204 bytes)   
cookies_official_mantis.png (64,204 bytes)   
cookies_own_mantis.png (64,295 bytes)   
cookies_own_mantis.png (64,295 bytes)   

Relationships

related to 0035645 resolvedcommunity Some widgets are not collapsible 

Activities

dregad

dregad

2025-07-17 06:48

developer   ~0070388

The javascript handling collapsible widgets was refactored in (not yet released) MantisBT 2.28.0, fixing several issues. Please see 0035645 for details.

This tracker runs on the latest code (master branch), including this fix, which could explain the difference in behavior vs 2.27.1 you reported.

Would you be able to test using a nightly build (https://mantisbt.org/builds.php) and confirm whether the problem is resolved ?

I'm hoping to release 2.28.0 in August (but no hard promises).

dregad

dregad

2025-08-19 06:03

developer   ~0070455

@ThecaTTony,

You did not provide any feedback; I am therefore resolving this issue as "no change required".

Feel free to reopen the issue at a later time and provide the requested information.