Skip to content

Commit 7beac56

Browse files
committedJun 15, 2012
MantisGraph: incorrect issues count in graph by severity
When $g_bug_closed_status_threshold is not the "final" entry in status_enum_string list, function enum_bug_group() in graph_api.php computed the number of closed issues incorrectly due to use of '=' operator instead of '>=' in the query's where clause. Also corrects some trailing whitespace. Fixes #14356
1 parent bc462cd commit 7beac56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎plugins/MantisGraph/core/graph_api.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ function enum_bug_group( $p_enum_string, $p_enum ) {
620620
$query = "SELECT COUNT(*)
621621
FROM $t_bug_table
622622
WHERE $p_enum='$t_value' AND
623-
status='$t_clo_val' $specific_where";
623+
status>='$t_clo_val' $specific_where";
624624
$result2 = db_query( $query );
625625
$t_metrics['closed'][$t_label] = db_result( $result2, 0, 0 );
626626

@@ -892,9 +892,9 @@ function error_check( $bug_count, $title ) {
892892

893893
function error_text( $title, $text ) {
894894
if( OFF == plugin_config_get( 'eczlibrary' ) ) {
895-
895+
896896
$t_graph_font = graph_get_font();
897-
897+
898898
$graph = new CanvasGraph( 300, 380 );
899899

900900
$txt = new Text( $text, 150, 100 );

0 commit comments

Comments
 (0)
Please sign in to comment.