Page 1 of 1

Wrong status string when adding a custom status

Posted: 19 Sep 2010, 10:26
by devboy
Hi,

I attempted to follow posts I found around to implement a custom status on my mantis 1.2.2 installation. I wanted to add a status between assigned and resolved.

I basically did the following:

Added these lines to config_inc.php

Code: Select all

$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,75:comp,80:resolved,90:closed';
$g_status_colors['comp'] = '#cceedd';
Added a custom_constants_inc.php (and a custom_constant_inc.php - wasn't sure about the name):

Code: Select all

<?php define ( 'COMP', 75 ); ?>
Finally added custom_strings_inc.php:

Code: Select all

$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,75:comp,80:resolved,90:closed';
$s_comp_bug_button = "Completed Issue";
$s_comp_bug_title = "Set Issue to completed";
$s_email_notification_title_for_status_bug_comp = "The following issue is completed.";


All files are in MantisBT main dir (where I found config_inc.php)
I can see a new value in all the right places but the text is '@75@' instead of 'comp'

What did I miss?

Cheers,
DB

Re: Wrong status string when adding a custom status

Posted: 19 Sep 2010, 11:59
by atrol
In file custom_strings_inc.php change $g_status_enum_string to $s_status_enum_string

Re: Wrong status string when adding a custom status

Posted: 19 Sep 2010, 13:27
by devboy
http://linuxsysadminblog.com/2009/03/ad ... ug-status/

Should have read the comments.

Thanks!

Re: Wrong status string when adding a custom status

Posted: 19 Sep 2010, 13:36
by atrol
or read the documentation for enumerations in general
http://docs.mantisbt.org/master/en/admi ... MIZE.ENUMS