Customizing severities per project in mantis
Posted: 23 Jul 2007, 14:10
Hello All,
My mantis instance has about 5 projects and I am working on customizing the severity fileds for one of these projects. I am unable to get this working so my first question is ..is this possible? Below is the code in the custom_strings_inc.php that I tried to use but it only works after login. If I logout, I won't be able to view the login page again as the helper_get_current_project() I am using is probably not the one I should be using. any ideas? Thanks a lot for your help on this.
if ( lang_get_current() === 'english' ) {
if (helper_get_current_project() == '7' )
$s_severity_enum_string = '40: Low, 50:Medium,60:High';
else
$s_severity_enum_string = '40:sev 4,50:sev 3,60:sev 2,70:sev 1';
My mantis instance has about 5 projects and I am working on customizing the severity fileds for one of these projects. I am unable to get this working so my first question is ..is this possible? Below is the code in the custom_strings_inc.php that I tried to use but it only works after login. If I logout, I won't be able to view the login page again as the helper_get_current_project() I am using is probably not the one I should be using. any ideas? Thanks a lot for your help on this.
if ( lang_get_current() === 'english' ) {
if (helper_get_current_project() == '7' )
$s_severity_enum_string = '40: Low, 50:Medium,60:High';
else
$s_severity_enum_string = '40:sev 4,50:sev 3,60:sev 2,70:sev 1';