Page 1 of 1

Filters Customizations

Posted: 23 Dec 2015, 05:54
by mshahzad
I want to know that how can we add new filters and remove default filters of mantis

Re: Filters Customizations

Posted: 23 Dec 2015, 08:54
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.

Re: Filters Customizations

Posted: 28 Dec 2015, 11:11
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.

Re: Filters Customizations

Posted: 20 Jul 2017, 20:36
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.

Re: Filters Customizations

Posted: 21 Jul 2017, 06:28
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?

Re: Filters Customizations

Posted: 28 Aug 2017, 07:38
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

Re: Filters Customizations

Posted: 29 Aug 2017, 05:46
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

Re: Filters Customizations

Posted: 31 Aug 2017, 06:41
by froilanserohijos
Hi Atrol;

I remove it from Filter_Form_api.php under filter_form_draw_inputs function.

It solves my problem.

Re: Filters Customizations

Posted: 25 Oct 2017, 13:56
by jasmyndube
So, is there any way to customize default filters even by editing in code.

Re: Filters Customizations

Posted: 25 Oct 2017, 14:03
by atrol
You would have to change source of function filter_get_default