Filters Customizations

Post about your customizations to share with others.

Moderators: Contributor, Developer

Filters Customizations

Postby mshahzad » Dec 23, 2015 12:54 am

I want to know that how can we add new filters and remove default filters of mantis
mshahzad
 
Posts: 10
Joined: Dec 22, 2015 6:47 am

Re: Filters Customizations

Postby atrol » Dec 23, 2015 3:54 am

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
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6714
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Filters Customizations

Postby mshahzad » Dec 28, 2015 6:11 am

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.
mshahzad
 
Posts: 10
Joined: Dec 22, 2015 6:47 am

Re: Filters Customizations

Postby mantisNoob2 » Jul 20, 2017 3:36 pm

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.
mantisNoob2
 
Posts: 4
Joined: May 30, 2017 11:36 am

Re: Filters Customizations

Postby atrol » Jul 21, 2017 1:28 am

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
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6714
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Filters Customizations

Postby froilanserohijos » Aug 28, 2017 2:38 am

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
froilanserohijos
 
Posts: 9
Joined: Oct 17, 2016 3:06 am

Re: Filters Customizations

Postby atrol » Aug 29, 2017 12:46 am

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
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6714
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Filters Customizations

Postby froilanserohijos » Aug 31, 2017 1:41 am

Hi Atrol;

I remove it from Filter_Form_api.php under filter_form_draw_inputs function.

It solves my problem.
froilanserohijos
 
Posts: 9
Joined: Oct 17, 2016 3:06 am

Re: Filters Customizations

Postby jasmyndube » Oct 25, 2017 8:56 am

So, is there any way to customize default filters even by editing in code.
jasmyndube
 
Posts: 1
Joined: Oct 25, 2017 8:45 am

Re: Filters Customizations

Postby atrol » Oct 25, 2017 9:03 am

You would have to change source of function filter_get_default
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6714
Joined: Mar 26, 2008 4:37 pm
Location: Germany


Return to Customizations

Who is online

Users browsing this forum: No registered users and 6 guests