Page 1 of 1

Filter box collapsed by default?

Posted: 29 Jan 2018, 13:31
by joancatala
Hi all,
I'm trying to log in Mantis Bug Tracker and to collapse the filter box options by default.
I read two very old posts, but these solutions doesn't work anymore:

1- 'Collapsed by default' in collapse_api + minor improvements
viewtopic.php?f=4&t=308

2.- Filter to default closed
https://mantisbt.org/forums/viewtopic.php?f=3&t=18944

Now I'm using the version 2.9 and I see different PHP functions ( function collapse_open, function collapse_closed, function collapse_end...) but I can't solve this.

Can somebody help me, please? Thanks in advance.

Re: Filter box collapsed by default?

Posted: 10 Mar 2018, 07:35
by rabiyajamal45
Hey joancatala,

Have you resolved your issue. I'm facing the same issue.

Re: Filter box collapsed by default?

Posted: 12 Dec 2018, 00:14
by hanvari
For the record, here is how to set the Filter box to be collapsed by default:
(Tested on MantisBT version 2.18.0)

In file: core/collapse_api.php
On line: 201
Change the line:

Code: Select all

 $t_data['filter'] = false; 
to:

Code: Select all

 $t_data['filter'] = true; 
And this will make the filter box to be collapsed by default for all users. As soon as users interact with filter box, their last choice will be preserved in the cookies since after.

Re: Filter box collapsed by default?

Posted: 18 Dec 2018, 12:10
by cas
this actually should be a default value for config_inc.php :mrgreen: