Specific severity for one project

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
francois
Posts: 1
Joined: 18 Apr 2008, 16:03

Specific severity for one project

Post by francois »

Hello, I have a problem with my mantis. I have 5 projects, but for one, I want a reduced severity list. this my code :
in custom_strings_inc.php :

Code: Select all

if(lang_get_current() === 'french'){
    if(helper_get_current_project() == '5')
         $s_severity_enum_string='10:low,20:medium,30:high';
    else
         $s_severity_enum_string='10:low,20:medium,30:high,40:very high';
}
in custom_constant_inc.php :

Code: Select all

define('low',10);
define('medium',20);
define('high',30);
define('very high',40);
in config_inc.php :

Code: Select all

$g_sevrity_enum_string='10:low,20:medium,30:high,40:very high';
in lang/strings_french.txt :

Code: Select all

$s_sevrity_enum_string='10:basse,20:moyenne,30:haute,40:très haute';
But when i execute this code i have an error :
"call to undefined function acces_denied() in var/www/apache/mantis/core/authentication_api.php"

Have you got any idea to resolve my problem ??
Post Reply