How to remove statues

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
thinkong

How to remove statues

Post by thinkong »

Hi

I want to remove statues, but I don't know how, Could anyone help me to do this?
I have read the following posts, however I still failed to modify the statues:
-------------------------------------------
http://www.mantisbt.org/manual/manual.c ... values.php
http://www.mantisbt.org/forums/viewtopi ... =4&t=19746
-------------------------------------------

My requirement is as below:
-------------------------------------------
Status workflow:
New->assigned->resolved->closed

Resolution statues:
-open
-initial
-fixed
-not fixable
-------------------------------------------
thinkong

Re: How to remove statues

Post by thinkong »

It is me again.
I gave it a shot as below, and it did work

find the file "mantis/config_default_inc.php",and make modifications as below(Of course, you have modify the lang file if you want localize the status).
----------------------------------------------------
$g_status_enum_string ='10:new,20:assigned,30:resolved,40:feedback,50:closed';
$g_resolution_enum_string = '10:open,20:initial,30:fixed,40:not fixable,50:duplicate';
----------------------------------------------------

but another problem happened:
the configuration of workflow threshold and configuration of workflow are out of work when I make some changes.
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How to remove statues

Post by atrol »

thinkong wrote: find the file "mantis/config_default_inc.php",and make modifications as below
You should never change this file! You will get problems when updating to newer versions.
Copy the settings you want to change from config_defaults_inc.php to config_inc.php and edit this file.
thinkong wrote: the configuration of workflow threshold and configuration of workflow are out of work when I make some changes.
You should provide step by step instructions what you did, what you get and what you expect to get.
Please use Search before posting and read the Manual
thinkong

Re: How to remove statues

Post by thinkong »

Thank you Atrol!
I have finally found the resolution:
----------------------------------------
1.find the file "mantis/config_inc.php",and make modifications as below.
$g_status_enum_string ='10:new,20:assigned,30:resolved,40:feedback,50:closed';
$g_resolution_enum_string = '10:open,20:initial,30:fixed,40:not fixable,50:duplicate';
$g_status_colors = array( 'new' => '#fcbdbd', // red (scarlet red #ef2929)
'assigned' => '#c2dfff', // blue (sky blue #729fcf)
'resolved' => '#d2f5b0', // green (chameleon #8ae234)
'feedback' => '#e3b7eb', // purple (plum #75507b)
'closed' => '#c9ccc4'); // grey (aluminum #babdb6)
$g_bug_readonly_status_threshold = RESOLVED; //You can give a threshold value higher than resolved. and This is the root cause which make the configuration of "workflow" out of work.

2.Of course, you have to modify the lang file if you want localize the status

3.If something happen like this: you update configuration of "workflow" , and then even a developer can't add bugnote , try like this:
log on to MySQL, find the table "mantis_config_table" of your database entity, then delete the row which contains "bug_readonly_status_threshold", or modify the value of the row "bug_readonly_status_threshold" to higher than or equal to resolved.
Post Reply