summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-10-21 18:44:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-10-21 18:44:33 +0000
commitb01c74098055d20a4784eb7d088ec6acaea2cf22 (patch)
tree84afde46ee68300a80a8b8a497b293b36abb2eff /app
parent51508f67d0cc716d665d8a32ac3bffdf7af44ea4 (diff)
downloadredmine-b01c74098055d20a4784eb7d088ec6acaea2cf22.tar.gz
redmine-b01c74098055d20a4784eb7d088ec6acaea2cf22.zip
Fixed test failure with MySQL introduced by r13467.
git-svn-id: http://svn.redmine.org/redmine/trunk@13468 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 8fb1935f0..1c1c99dec 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -1229,7 +1229,7 @@ class Issue < ActiveRecord::Base
count.
map do |columns, total|
status_id, is_closed, field_value = columns
- is_closed = ['t', 'true', true].include?(is_closed)
+ is_closed = ['t', 'true', '1'].include?(is_closed.to_s)
{
"status_id" => status_id.to_s,
"closed" => is_closed,