Page 1 of 1

Need help with customized status dropdown value

Posted: 11 Aug 2006, 20:58
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!

Posted: 13 Dec 2006, 11:10
by costanm
do you still have custom_constant like

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

Best Regards

Posted: 14 Dec 2006, 02:50
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.

Posted: 23 Jan 2007, 11:55
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