Page 1 of 1

Remove native fields

Posted: 21 Apr 2010, 12:53
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.

Re: Remove native fields

Posted: 21 Apr 2010, 13:51
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;

Re: Remove native fields

Posted: 21 Apr 2010, 14:20
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 ?

Re: Remove native fields

Posted: 21 Apr 2010, 20:51
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.