JPGraph with altered Status and Severity items

Post about your customizations to share with others.

Moderators: Developer, Contributor

Locked
C4Vette
Posts: 21
Joined: 28 Sep 2006, 11:57
Location: Netherlands

JPGraph with altered Status and Severity items

Post by C4Vette »

To simplify the use of Mantis for our needs I removed a few items from the 'Status' and 'Severity' enum_strings by adding the following to config_inc.php :

# --- enum strings ----------------
$g_severity_enum_string = '10:feature,30:text,50:minor,60:major,70:crash,80:block';
$g_status_enum_string = '10:new,20:feedback,50:assigned,80:resolved,90:closed';

This works fine, but (isn't there always a 'but'..) when viewing the "Summary" the graphs still show the unused items 'trivial', 'tweak', 'urgent' and 'immediate'.
Any idea how to change that too?

Thanks, Ed
costanm
Posts: 19
Joined: 07 Nov 2006, 15:09
Location: Noesis - Portugal

Post by costanm »

Hi,

there are still some bugs in your db that have those status....you must change them...
Nuno Ferreira da Costa
C4Vette
Posts: 21
Joined: 28 Sep 2006, 11:57
Location: Netherlands

Post by C4Vette »

@costanm,

thanks for thinking with me, but that wasn't it.
At first there indeed were some bugs with the no longer used status and they showed up as @20@ , @40@ etc. (if I recall correctly) in de 'View reports'.
I changed the few bugs to another status so the old ones are no longer in use.
Besides that; the JPGraph statistic shows these unused items with zero bugs but the name for the column is still there. Same thing for the legenda for the pie-chart. Also ruled out caching (I think).

using version 1.1.0a1 but saw it earlier in 1.0.5
C4Vette
Posts: 21
Joined: 28 Sep 2006, 11:57
Location: Netherlands

solved

Post by C4Vette »

Solved it by adding the same lines to "custom_strings_inc.php" :

$g_severity_enum_string = '10:feature,30:text,50:minor,60:major,70:crash,80:block';
$g_status_enum_string = '10:new,20:feedback,50:assigned,80:resolved,90:closed';


Done!!
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

Did you add them with $g_* prefix or $s_* prefix? The custom_strings_inc.php should typically only set $s_* variables.
C4Vette
Posts: 21
Joined: 28 Sep 2006, 11:57
Location: Netherlands

my mistake, sorry

Post by C4Vette »

Oops, you are so right Victor, it is:

$s_severity_enum_string = '10:feature,30:text,50:minor,60:major,70:crash,80:block';
$s_status_enum_string = '10:new,20:feedback,50:assigned,80:resolved,90:closed';

made the mistake in copy/paste to the forum.

Great application and thanks for monitoring.
Locked