Permalink
Browse files

Fix graph display in advanced summary with MSSQL

Graph « Cumulative by date » is not displayed in Summary > Advanced
Summary, SQL Server complains that it cannot convert varchar to int.

Fixes #17011, #142

Signed-off-by: Damien Regad <dregad@mantisbt.org>
  • Loading branch information...
jeckyhl authored and dregad committed Feb 20, 2014
1 parent 7fedefd commit 7e003e911da85119b5c107069b7349d206ea45b8
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/MantisGraph/core/graph_api.php
@@ -831,7 +831,7 @@ function create_cumulative_bydate() {
AND $t_history_table.field_name = 'status' )
OR $t_history_table.id is NULL )
ORDER BY $t_bug_table.id, date_modified ASC";
- $result = db_query_bound( $query, array( $t_res_val, $t_res_val ) );
+ $result = db_query_bound( $query, array( $t_res_val, (string)$t_res_val ) );
$bug_count = db_num_rows( $result );
$t_last_id = 0;

0 comments on commit 7e003e9

Please sign in to comment.