Remove native fields

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
coppin
Posts: 12
Joined: 19 Apr 2010, 10:01

Remove native fields

Post by coppin »

Hello,

I know how to add Custom Fields , but I don't know how to suppress fields I don't need. For example, I don't want to use Global Profiles and Categories. It is possible to not display them when reporting a bug and during all the lifecycle of the ticket ?
Who can help me ?
Thank you.
atrol
Site Admin
Posts: 8580
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Remove native fields

Post by atrol »

Profiles can be disabled by adding the following line to your config_inc.php
$g_enable_profiles = OFF;

AFAIK there is nothing comparable for categories, what you can is:
a) disable global categories by unchecking the "Inherit Global Categories " checkbox when creating a project
b) allow to enter no category with configuration $g_allow_no_category = ON;
Please use Search before posting and read the Manual
coppin
Posts: 12
Joined: 19 Apr 2010, 10:01

Re: Remove native fields

Post by coppin »

OK for $g_enable_profiles = OFF.
I found a way to not display the profile (or platform, better name) by overloading $_bug_report_page_fields.I remove all the fields in the variable array I don't want to see and use. For me it works, but it is the only thing to do? It is Ok with the database management ?
atrol
Site Admin
Posts: 8580
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Remove native fields

Post by atrol »

There are comments in config_defaults_inc.php related to overloading this array

Code: Select all

	 * The following fields must be included:
	 * category_id, summary, description.
This is a hint which should not be ignored.
Maybe there will be problems if there exists a category with auto assignment to an user, maybe no problem for you
Maybe other problems ....
You would have to check the complete soure code where category is used to get a real answer for this and not just a speculation.
Try posting your question to IRC or developer mailing list. Maybe the developer who wrote the comment will give you a better answer than I am able to give.
Please use Search before posting and read the Manual
Post Reply