Skip to content

Commit

Permalink
MantisGraph: incorrect issues count in graph by severity
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dregad committed Jun 15, 2012
1 parent bc462cd commit 7beac56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/MantisGraph/core/graph_api.php
Expand Up @@ -620,7 +620,7 @@ function enum_bug_group( $p_enum_string, $p_enum ) {
$query = "SELECT COUNT(*)
FROM $t_bug_table
WHERE $p_enum='$t_value' AND
status='$t_clo_val' $specific_where";
status>='$t_clo_val' $specific_where";
$result2 = db_query( $query );
$t_metrics['closed'][$t_label] = db_result( $result2, 0, 0 );

Expand Down Expand Up @@ -892,9 +892,9 @@ function error_check( $bug_count, $title ) {

function error_text( $title, $text ) {
if( OFF == plugin_config_get( 'eczlibrary' ) ) {

$t_graph_font = graph_get_font();

$graph = new CanvasGraph( 300, 380 );

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

0 comments on commit 7beac56

Please sign in to comment.