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...
1 parent e1ab941 commit 8f175254a13a96d2a578e2babe9613c2aa924fb4 @jeckyhl jeckyhl committed with dregad Feb 20, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/MantisGraph/core/graph_api.php
View
2 plugins/MantisGraph/core/graph_api.php
@@ -886,7 +886,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";
- $t_result = db_query_bound( $query, array( $t_res_val, $t_res_val ) );
+ $t_result = db_query_bound( $query, array( $t_res_val, (string)$t_res_val ) );
$bug_count = db_num_rows( $t_result );
$t_last_id = 0;

0 comments on commit 8f17525

Please sign in to comment.