Wrong status string when adding a custom status

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
devboy
Posts: 16
Joined: 19 Sep 2010, 08:19

Wrong status string when adding a custom status

Post 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
atrol
Site Admin
Posts: 8534
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Wrong status string when adding a custom status

Post by atrol »

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

Re: Wrong status string when adding a custom status

Post by devboy »

http://linuxsysadminblog.com/2009/03/ad ... ug-status/

Should have read the comments.

Thanks!
atrol
Site Admin
Posts: 8534
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Wrong status string when adding a custom status

Post by atrol »

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
Post Reply