Filter box collapsed by default?

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
joancatala
Posts: 1
Joined: Sep 10, 2015 2:56 am

Filter box collapsed by default?

Post by joancatala » Jan 29, 2018 8:31 am

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.

rabiyajamal45
Posts: 1
Joined: Feb 08, 2018 3:06 am

Re: Filter box collapsed by default?

Post by rabiyajamal45 » Mar 10, 2018 2:35 am

Hey joancatala,

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

hanvari
Posts: 1
Joined: Dec 11, 2018 7:09 pm

Re: Filter box collapsed by default?

Post by hanvari » Dec 11, 2018 7:14 pm

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.

cas
Posts: 604
Joined: Mar 11, 2006 11:08 am
Contact:

Re: Filter box collapsed by default?

Post by cas » Dec 18, 2018 7:10 am

this actually should be a default value for config_inc.php :mrgreen:

Post Reply