Customizing Severity Level

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
mehmet
Posts: 10
Joined: Jul 03, 2013 2:51 am

Customizing Severity Level

Post by mehmet » Jul 17, 2013 3:02 am

Dear all,

I am trying to add a new severity level for the bug_report_page.php. What I have done is, I have added;

In constant_inc.php I added

# severity
define( 'FEATURE', 10 );
define( 'TRIVIAL', 20 );
define( 'TEXT', 30 );
define( 'TWEAK', 40 );
define( 'MINOR', 50 );
define( 'MAJOR', 60 );
define( 'CRASH', 70 );
define( 'CRITICAL', 75 );
define( 'BLOCK', 80 );

In config_defaults_inc.php I added;

$g_severity_enum_string = '10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,75:critical,80:block';

But when I open the bug report page, I always get different characters instead of "critical". Can you please help me how to solve this problem ?

Thank you all in advance

atrol
Site Admin
Posts: 7681
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Customizing Severity Level

Post by atrol » Jul 17, 2013 4:58 am

Never ever change constant_inc.php or config_defaults_inc.php

Customize your severity values the way it's described in documentation
Have a look at the example how to introduce a new status value.
http://www.mantisbt.org/docs/master-1.2 ... IZE.STATUS
Please use Search before posting and read the Manual

Post Reply