Deleting # of statusus/sevitiry etc

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Deleting # of statusus/sevitiry etc

Post by Reinder »

Mantis works great !! But for me it has too many options. For example, I dont need about 7 sevitity statuses, only 4 or 5. But when I delete them in the config file (config_inc.php) and the language file (strings_english.txt) It gives something like @70@ as an option. How can I delete them? Same for other drop down listst like priority. I've tried it all, but it doesn't seem to work :( HELP!!
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

Just make a copy of $g_severity_enum_string into your config_inc.php file. Edit out the unwanted number:string pairs and you should have what you are looking for. You don't need to edit the language files.
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Post by Reinder »

:) When browsing through the forum I found that out, but the problem was that i also renumbered the remaining options (thats why it didn't work :)). But if I dont edit the language file, the chage is not shown....
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

Is there a reason why you want to re-number them? Everything should work if you revert back to the original state, then just override the enum in the config_inc.php to drop the ones that you don't need.

Regards,
Victor
MantisConnect
http://www.futureware.biz/mantisconnect/
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Post by Reinder »

No reason, just liked it tidy :) but just deleting numbers seems to work only partially.....because I also want to rename them (dont kneed acknowledged or confirmed, but I do need retest status). So can this be done without editing the constant file (and language file) ??
willick

Post by willick »

I had the same problem with removing items from the severity string in mantis Mantis 1.0.0rc1
Any of the mantis developers know how to fix this so I don't have to change the mantis code?
I changed my severity string in my custom_strings_inc to:
$s_severity_enum_string = '20:trivial,50:minor,60:major,70:crash';
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

When you change an enum you need to change the $g_ and $s_ for it. For example,

In config_inc.php:
$g_severity_enum_string = '20:trivial,50:minor,60:major,70:crash';

In custom_strings_inc.php
$s_severity_enum_string = '20:trivial,50:minor,60:major,70:crash';

The $g_* is the one used to control the code logic, and the $s_* is used to localise the names of the enum names.

Regards,
Victor
Mantis Blog
http://www.futureware.biz/
Post Reply