I want to add the status rejected to the list of status.
I followed the steps described in the Mantis documentation http://manual.mantisbt.org/manual.custo ... values.php
I created the file custom_constant_inc.php which content is:
Code: Select all
<?php
define ( 'rejected', 85 );
?>Code: Select all
<?php
$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,85:rejected,90:closed';
$s_rejected_bug_button = "Reject";
$s_rejected_bug_title = "Reject";
$s_email_notification_title_for_status_bug_rejected = "The following issue was REJECTED.";
?>Code: Select all
# add status rejected
$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,
80:resolved,85:rejected,90:closed';
$g_status_colors['rejected'] = '#ACE7AE';
# workflow
$g_status_enum_workflow[NEW_]= '40:confirmed,85:rejected';
$g_status_enum_workflow[rejected]= '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,85:rejected';
$g_status_enum_workflow[CONFIRMED]= '50:assigned,85:rejected';
$g_status_enum_workflow[ASSIGNED]= '80:resolved';
$g_status_enum_workflow[RESOLVED]= '90:closed';
$g_status_enum_workflow[CLOSED]= '10:new';
$g_status_enum_workflow[FEEDBACK]= '40:confirmed,85:rejected';
?>What did I miss ?
The file custom_strings_inc.php seems to be fine. Indeed, if I change 'confirmed' by another string for the variable 's_status_enum_string', the new value is correctly displayed.
Thanks for your help.
I use Mantis 1.2.4 on Windows XP