Filters Customizations

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
mshahzad
Posts: 10
Joined: 22 Dec 2015, 11:47

Filters Customizations

Post by mshahzad »

I want to know that how can we add new filters and remove default filters of mantis
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Filters Customizations

Post by atrol »

There is a button "Save Current Filter" on "View Issues" page to add new filters.
There is a button "Manage Filters" on "View Issues" page to remove existing ones.
Please use Search before posting and read the Manual
mshahzad
Posts: 10
Joined: 22 Dec 2015, 11:47

Re: Filters Customizations

Post by mshahzad »

but i am asking about customization of default filters. there is not any option on 'view issue page' for default filters. So, is there any way to customize default filters even by editing in code.
mantisNoob2
Posts: 8
Joined: 30 May 2017, 16:36

Re: Filters Customizations

Post by mantisNoob2 »

Did you ever figure this out? I need to remove several of the default filters.

I tried commenting out the filter fields in filter_constants_inc.php to no avail.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Filters Customizations

Post by atrol »

After reading this topic again after more than one year, I get the impression, that I did not understand what user mshahzad requested.
mantisNoob2 wrote:several of the default filters
This is also something that I do not understand.
About which default filters are you talking?
Please use Search before posting and read the Manual
froilanserohijos
Posts: 9
Joined: 17 Oct 2016, 08:06

Re: Filters Customizations

Post by froilanserohijos »

atrol wrote:After reading this topic again after more than one year, I get the impression, that I did not understand what user mshahzad requested.
mantisNoob2 wrote:several of the default filters
This is also something that I do not understand.
About which default filters are you talking?

Hi Atrol;

Good day!

I think I have the same issue with MantisNoon2. Under /view_all_bug_page.php, I want to take out some Filters like Severity, Priority but it seems I cannot see the html page of it.

Hoping for your kind help.

Froilan
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Filters Customizations

Post by atrol »

froilanserohijos wrote:I want to take out some Filters like Severity, Priority
Do you enter values for this fields?
If so, removing from the filters is cetainly no good idea.
If not, it's better to suppress fields at as much places as possible in a first step to https://www.mantisbt.org/docs/master/en ... fig.fields
Please use Search before posting and read the Manual
froilanserohijos
Posts: 9
Joined: 17 Oct 2016, 08:06

Re: Filters Customizations

Post by froilanserohijos »

Hi Atrol;

I remove it from Filter_Form_api.php under filter_form_draw_inputs function.

It solves my problem.
jasmyndube
Posts: 1
Joined: 25 Oct 2017, 13:45
Contact:

Re: Filters Customizations

Post by jasmyndube »

So, is there any way to customize default filters even by editing in code.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Filters Customizations

Post by atrol »

You would have to change source of function filter_get_default
Please use Search before posting and read the Manual
Post Reply