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

Post about your customizations to share with others.

Moderators: Developer, Contributor

whoovian11
Posts: 19
Joined: 10 Jul 2015, 19:25

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

Post by whoovian11 »

But get @21@ and @26@ in my options list. Please Help..

Here is what I did so far..
I edited config_inc.php and added

Code: Select all

 g_status_enum_string = '10:new,20:feedback,21:Not Valid,26:In_Progress,30:acknowledged,50:assigned,80:resolved,90:closed'; $g_status_colors['Not Valid'] = '#ACE7AE'; $g_status_colors['In_Progress'] = '#CEF9CF';

$g_status_enum_workflow[NEW_]='20:feedback,21:Not Valid,26:In_Progress,30:acknowledged,40:confirmed,50:assigned,80:resolved';
$g_status_enum_workflow[FEEDBACK] ='10:new,21:Not Valid,26:In_Progress,30:acknowledged,40:confirmed,50:assigned,80:resolved';
$g_status_enum_workflow[NOT VALID] ='10:new,20:feedback,26:In_Progress,30:acknowledged,40:confirmed,50:assigned,80:resolved';
$g_status_enum_workflow[IN_PROGRESS] ='10:new,30:acknowledged,20:feedback, 21:Not Valid,40:confirmed,50:assigned,80:resolved';
$g_status_enum_workflow[ACKNOWLEDGED] ='20:feedback,21:Not Valid,26:In_Progress,40:confirmed,50:assigned,80:resolved';
$g_status_enum_workflow[CONFIRMED] ='20:feedback,21:Not Valid,26:In_Progress,50:assigned,80:resolved';
$g_status_enum_workflow[ASSIGNED] ='20:feedback,21:Not Valid,26:In_Progress,80:resolved,90:closed';
$g_status_enum_workflow[RESOLVED] ='50:assigned,90:closed';
$g_status_enum_workflow[CLOSED] ='50:assigned';

   
Then I created custom_constant_inc.php

<

Code: Select all

?php
 define( 'Not Valid', 21 );
 define( 'In_Progress', 26 );
 ?> 

Then I created custom_strings_inc.php

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'; ?>
Last edited by whoovian11 on 13 Jul 2015, 12:31, edited 1 time in total.
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post by atrol »

Which version of MantisBT do you use?
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 »

2000 - 2015 MantisBT Team
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post by atrol »

whoovian11 wrote:2000 - 2015 MantisBT Team
This is the copyright string, not the version. You will see 2000 - 2016 in January 2016.
Goto page "Manage" to see the verssion

What happens if you temporary add

Code: Select all

die ("In custom_strings_inc.php");
to file custom_strings_inc.php?
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 »

Version: 1.2.17
What does die ("In custom_strings_inc.php") do?
I am just an intern, so I don't want to change anything unless I know what it does?
Thank you
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post by atrol »

whoovian11 wrote: What does die ("In custom_strings_inc.php") do?
It stops execution of the script and displays "In custom_strings_inc.php" on the page.
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 »

I added die ("In custom_strings_inc.php") to custom_string_inc and nothing happened? The status still says @21@ and @26@.
More information: custom_string_inc.php and custom_constant_inc.php located in 'core' and config_inc.php in 'mantis common'
I do have the footer saying In_progress and In valid with the assigned colors.
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post by atrol »

whoovian11 wrote:I added die ("In custom_strings_inc.php") to custom_string_inc and nothing happened?
That's what I expected
whoovian11 wrote:located in 'core'
And that's the reason for it. The files have the be stored in the root directory of your installation but not in subdirectory core
whoovian11 wrote:config_inc.php in 'mantis common'
Is 'mantis common' a subdirectory of the directory where you installed?
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 »

Here is where mantis_common and core folders are located:
Data (E)--> wamp-->www-->mantis_common-->core
mantis_common is where the config is located..
core is where the string and constant is located.
Where should I move the folders to?
Thank you
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 »

I tried to move custom _strings and custom_constants from core to mantis_common
And I get this error

Possible Whitespace/Error in Configuration File - Aborting. Output so far follows:

string '
' (length=3)
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 »

I am also getting another error in the E-mail Notifications page..
SYSTEM WARNING: 'Illegal string offset 'threshold_min'' in 'E:\wamp\www\mantis_common\manage_config_email_page.php' line 111

SYSTEM WARNING: 'Illegal string offset 'threshold_max'' in 'E:\wamp\www\mantis_common\manage_config_email_page.php' line 112

SYSTEM WARNING: 'Illegal string offset 'threshold_min'' in 'E:\wamp\www\mantis_common\manage_config_email_page.php' line 113

SYSTEM WARNING: 'Illegal string offset 'threshold_max'' in 'E:\wamp\www\mantis_common\manage_config_email_page.php' line 114
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post by atrol »

whoovian11 wrote:I tried to move custom _strings and custom_constants from core to mantis_common
And I get this error

Possible Whitespace/Error in Configuration File - Aborting. Output so far follows:

string '
' (length=3)
Remove the closing PHP tag

Code: Select all

?>
from the last line of custom_constant_inc.php and custom_strings_inc.php
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 »

That gave me this error....Now I cant even access anything. Please Help.
Attachments
Mantis error.png
Mantis error.png (27.06 KiB) Viewed 12250 times
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post by atrol »

Upload your custom_strings_inc.php
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 »

Code: Select all

<?php 
# Note that we don't have to remove the existing statuses entry from the localisation file

if ( $g_lang_current === 'english' ) {
    $s_status_enum_string = 
        =  '10:new,20:feedback,21:Not Valid,26:In_Progress,30:acknowledged,50:assigned,80:resolved,90:closed'; 

?>

Post Reply