I ve been successfully add a new status which is "Ready to Commit". New status works perfectly for one project. In my mantis there are 3 different projects. The "Ready To Commit" state works for just one project but it doesn't works for others. For other projects it returns a "Workflow Validation" on workflow transitions page. It says "Ready to Commit: You cannot move an issue into this status". Ive checked the flow and other things but it doesn't seems to be solved from the administrator gui. Any helps are highly appreciated. I'm including the following information about my new status:
config_defaults_inc.php
Updated the following line in Mantis Enum Strings part
Code: Select all
$g_status_enum_string = '10:initiated,20:Assigned Open,30:Not A Bug,40:Need Info,50:Change Assignee,60:Ready To Verify,65:Ready To Commit,70:Can_Not_Be_Reproduced,80:Deferred,90:Closed';
config_inc.php
Code: Select all
<?php
require_once('custom_config_inc.php');
?>
custom_config_inc.php
Code: Select all
<?php
#connection parameters
$g_hostname,$g_db_type etc etc....
#customize status
g_status_enum_string = '10:initiated,20:Assigned Open,30:Not A Bug,40:Need Info,50:Change Assignee,60:Ready To Verify,65:Ready To Commit,70:Can_Not_Be_Reproduced,80:Deferred,90:Closed';
#customize status color
$g_status_colors['Ready To Commit'] = '#FB8FF00';
?>
custom_constant_inc.php
Code: Select all
<?php
#customized new status
define('READYTOCOMMIT',65);
?>
custom_strings_inc.php
Code: Select all
<?php
#customize workflow status
g_status_enum_string = '10:initiated,20:Assigned Open,30:Not A Bug,40:Need Info,50:Change Assignee,60:Ready To Verify,65:Ready To Commit,70:Can_Not_Be_Reproduced,80:Deferred,90:Closed';
#customize status ready to commit
$s_email_nodification_title_for_status_bug_ready_to_commit = 'The following issue is READY TO BE COMMITTED';
$s_ready_to_commit_bug_button = "Ready To Commit";
$s_ready_to_commit_bug_title = "Ready To Commit";
?>