Page 1 of 1
Q: Severity filed off or change the item?
Posted: 05 Jun 2019, 05:28
by amphetamine
Want to disable the severity filed or replace the option items
from
Code: Select all
FEATURE,
TRIVIAL,
TEXT,
TWEAK,
MINOR,
MAJOR,
CRASH,
BLOCK
to
Code: Select all
Not effected,
Very Low,
Low,
High,
Very High
anyway to achieve that?
Re: Q: Severity filed off or change the item?
Posted: 05 Jun 2019, 14:59
by cas
This is described in the manual.
Re: Q: Severity filed off or change the item?
Posted: 12 Jun 2019, 15:13
by amphetamine
anyone could help? please!
Re: Q: Severity filed off or change the item?
Posted: 15 Jun 2019, 21:02
by atrol
Re: Q: Severity filed off or change the item?
Posted: 30 Jun 2019, 06:05
by amphetamine
Thanks!
Finally, understand the way to change...
1. create custom_strings_inc.php file under config folder, and add
Code: Select all
<?php
$s_severity_enum_string = '10:Not Effected,30:Very Low,50:Low,70:High,90:Very High,';
2. create custom_constants_inc.php file under config folder, and add
Code: Select all
<?php
define( 'Not Effected', 10 );
define( 'Very Low', 30 );
define( 'Low', 50 );
define( 'High', 70 );
define( 'Very High', 90 );
3. add code in the config/config_inc.php
Code: Select all
$g_severity_enum_string = '10:Not Effected,30:Very Low,50:Low,70:High,90:Very High,';
Re: Q: Severity filed off or change the item?
Posted: 12 Dec 2022, 07:20
by shanthini
Hi,
We did as suggested by amphetamine (the 3 steps) as below. Seems this is not working. Our Mantis version is 2.25.5
created custom_constants_inc.php - added the below
define( 'feature', 10 );
define( 'trivial', 20 );
define( 'text', 30 );
define( 'tweak', 40 );
define( 'selected', 50 );
define( 'major', 60 );
define( 'crash', 70 );
define( 'blocking', 80 );
Added the below in config_inc and custom_strings.inc
$g_severity_enum_string = '10:feature,20:trivial,30:text,40:tweak,50:selected,60:major,70:crash,80:blocking';
Please suggest
Thanks
Re: Q: Severity filed off or change the item?
Posted: 12 Dec 2022, 07:33
by atrol
The name of the variable in custom_strings_inc.php must be $s_severity_enum_string