Page 1 of 1
JPGraph with altered Status and Severity items
Posted: 03 Nov 2006, 14:45
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
Posted: 15 Nov 2006, 17:33
by costanm
Hi,
there are still some bugs in your db that have those status....you must change them...
Posted: 15 Nov 2006, 20:06
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
solved
Posted: 29 Nov 2006, 14:22
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!!
Posted: 29 Nov 2006, 18:16
by vboctor
Did you add them with $g_* prefix or $s_* prefix? The custom_strings_inc.php should typically only set $s_* variables.
my mistake, sorry
Posted: 30 Nov 2006, 09:15
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.