How to remove statues

Post about your customizations to share with others.

Moderators: Developer, Contributor

How to remove statues

Postby thinkong » Apr 07, 2012 8:38 am

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
viewtopic.php?f=4&t=19746
-------------------------------------------

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

Resolution statues:
-open
-initial
-fixed
-not fixable
-------------------------------------------
thinkong
 
Posts: 3
Joined: Apr 07, 2012 8:12 am
Location: Shenzhen,China

Re: How to remove statues

Postby thinkong » Apr 08, 2012 7:34 am

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.
thinkong
 
Posts: 3
Joined: Apr 07, 2012 8:12 am
Location: Shenzhen,China

Re: How to remove statues

Postby atrol » Apr 09, 2012 7:52 am

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

Re: How to remove statues

Postby thinkong » Apr 09, 2012 10:18 am

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.
thinkong
 
Posts: 3
Joined: Apr 07, 2012 8:12 am
Location: Shenzhen,China


Return to Customizations

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron