Wrong status string when adding a custom status

General discussion of Mantis.

Moderators: Developer, Contributor

Wrong status string when adding a custom status

Postby devboy » Sep 19, 2010 5:26 am

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
devboy
 
Posts: 16
Joined: Sep 19, 2010 3:19 am

Re: Wrong status string when adding a custom status

Postby atrol » Sep 19, 2010 6:59 am

In file custom_strings_inc.php change $g_status_enum_string to $s_status_enum_string
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: Wrong status string when adding a custom status

Postby devboy » Sep 19, 2010 8:27 am

devboy
 
Posts: 16
Joined: Sep 19, 2010 3:19 am

Re: Wrong status string when adding a custom status

Postby atrol » Sep 19, 2010 8:36 am

or read the documentation for enumerations in general
http://docs.mantisbt.org/master/en/admi ... MIZE.ENUMS
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


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron