I want to add Not Valid and In_Progress in Status options.

Post about your customizations to share with others.

Moderators: Developer, Contributor

atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: I want to add Not Valid and In_Progress in Status option

Post by atrol »

1) two times = (which is causing the new bug)
2) still contains the closing PHP tag in last line
3) $g_lang_current ??? where did you find this?
Please read the docs at https://www.mantisbt.org/docs/master-1. ... IZE.STATUS

As a first step change the whole file to nothing more than

Code: Select all

<?php 
$s_status_enum_string =  '10:new,20:feedback,21:Not Valid,26:In_Progress,30:acknowledged,50:assigned,80:resolved,90:closed'; 
Please use Search before posting and read the Manual
whoovian11
Posts: 19
Joined: 10 Jul 2015, 19:25

Re: I want to add Not Valid and In_Progress in Status option

Post by whoovian11 »

Alright I am starting over..with just one new option. Please check this before I change anything..Thank you for your help.
So create
custom_constants_inc.php
<?php
define( 'In Progress', 26 );
?>
custom_strings_inc.php
<?php
$s_status_enum_string = '10:new,20:feedback,26:In Progress,30:acknowledged,50:assigned,80:resolved,90:closed';
edit config_inc.php
g_status_enum_string = '10:new,20:feedback,26:In Progress,30:acknowledged,50:assigned,80:resolved,90:closed';
$g_status_colors['In Progress'] = '#CEF9CF';

$g_status_enum_workflow[NEW]='20:feedback,26:In Progress,30:acknowledged,40:confirmed,50:assigned,80:resolved';
$g_status_enum_workflow[FEEDBACK] ='10:new,26:In Progress,30:acknowledged,40:confirmed,50:assigned,80:resolved';
$g_status_enum_workflow[IN PROGRESS] ='10:new,30:acknowledged,20:feedback, 40:confirmed,50:assigned,80:resolved';
$g_status_enum_workflow[ACKNOWLEDGED] ='20:feedback,26:In Progress,40:confirmed,50:assigned,80:resolved';
$g_status_enum_workflow[CONFIRMED] ='20:feedback,26:In Progress,50:assigned,80:resolved';
$g_status_enum_workflow[ASSIGNED] ='20:feedback,26:In Progress,80:resolved,90:closed';
$g_status_enum_workflow[RESOLVED] ='50:assigned,90:closed';
$g_status_enum_workflow[CLOSED] ='50:assigned';
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: I want to add Not Valid and In_Progress in Status option

Post by atrol »

Delete your custom_constants_inc.php
Your custom_strings_inc.php is fine
Add to config_inc.php nothing more than

Code: Select all

$g_status_enum_string = '10:new,20:feedback,26:In Progress,30:acknowledged,50:assigned,80:resolved,90:closed'; 
$g_status_colors['In Progress'] = '#CEF9CF';
Use the workflow page to define your workflow instead of trying to configure it in config_inc.php
https://www.mantisbt.org/docs/master-1. ... RANSITIONS
Please use Search before posting and read the Manual
Post Reply