Filter box collapsed by default?

General discussion of Mantis.

Moderators: Developer, Contributor

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

Filter box collapsed by default?

Post 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.
rabiyajamal45
Posts: 1
Joined: 08 Feb 2018, 08:06

Re: Filter box collapsed by default?

Post by rabiyajamal45 »

Hey joancatala,

Have you resolved your issue. I'm facing the same issue.
hanvari
Posts: 1
Joined: 12 Dec 2018, 00:09

Re: Filter box collapsed by default?

Post 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.
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Filter box collapsed by default?

Post by cas »

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