Need help with customized status dropdown value

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
designreactor
Posts: 1
Joined: 11 Aug 2006, 20:28

Need help with customized status dropdown value

Post by designreactor »

Hi All,

I know this question have been ask before but with all the posting that I've read it still have not solved my issue.

custom_constant_inc.php - I added "<?php define('Need More Info', 65); ?>"
config_defaults_inc.php - I modified this string to include the new status value "$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,65:need more info,80:resolved, 90:closed';"

config_inc.php - I add this string to include the new status value "$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,65:need more info,80:resolved, 90:closed';"

custom_strings_inc.php - i created the file at mantis root directory and added this string "$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,65:need more info,80:resolved, 90:closed';"


From above changes i can see the new value in all expected, however i decided to get of the status value "confirmed" and replace it with "need more info". So i assigned "40:need more info" by updating the following:


config_defaults_inc.php - I modified this string to include the new status value "$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:need more info,50:assigned,80:resolved, 90:closed';"

config_inc.php - I add this string to include the new status value "$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:need more info,50:assigned,80:resolved, 90:closed';"

custom_strings_inc.php - i created the file at mantis root directory and added this string "$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:need more info,50:assigned,80:resolved, 90:closed';"

Now in the status dropdown menu i can still see "@65@". I did a grep from Mantis root directory and there are no instance of 65 anywhere. Please help me get rid of "@65@" from my dropdown menu.

BTW, Mantis was installed by an ex-employee so i really don't know what version it is because it is not visible on the UI. However /mantis/packages/mantis.spec shows "Version: 0.18.1".

Thanks!
costanm
Posts: 19
Joined: 07 Nov 2006, 15:09
Location: Noesis - Portugal

Post by costanm »

do you still have custom_constant like

define('Need More Info', 65); ?

Best Regards
Nuno Ferreira da Costa
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

I had a quick look, but didn't read your post in details. The problem appears to be that your status has a space in the name.

- When setting a $g_* variable, don't include a space.
- When setting a define, don't include a space.
- Only in the $s_* include the space.
runner80
Posts: 13
Joined: 23 Jan 2007, 10:29
Location: Dortmund, Germany

Post by runner80 »

If I understand correctly you changed the variable name and not the assigned "Text" in "\lang\strings_english.txt" or whatever language you use.
In section #Enum Strings define:
$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:need more info,50:assigned,80:resolved,90:closed';

Regards
Patrick
Post Reply