Q: Severity filed off or change the item?

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
amphetamine
Posts: 113
Joined: 05 Jun 2019, 00:17

Q: Severity filed off or change the item?

Post 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?
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Q: Severity filed off or change the item?

Post by cas »

This is described in the manual.
amphetamine
Posts: 113
Joined: 05 Jun 2019, 00:17

Re: Q: Severity filed off or change the item?

Post by amphetamine »

anyone could help? please!
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Q: Severity filed off or change the item?

Post by atrol »

Please use Search before posting and read the Manual
amphetamine
Posts: 113
Joined: 05 Jun 2019, 00:17

Re: Q: Severity filed off or change the item?

Post 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,';
shanthini
Posts: 39
Joined: 10 Apr 2010, 12:01

Re: Q: Severity filed off or change the item?

Post 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
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Q: Severity filed off or change the item?

Post by atrol »

The name of the variable in custom_strings_inc.php must be $s_severity_enum_string
Please use Search before posting and read the Manual
Post Reply