From: Jean-Philippe Lang Date: Tue, 21 Oct 2014 18:44:33 +0000 (+0000) Subject: Fixed test failure with MySQL introduced by r13467. X-Git-Tag: 3.0.0~492 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b01c74098055d20a4784eb7d088ec6acaea2cf22;p=redmine.git Fixed test failure with MySQL introduced by r13467. git-svn-id: http://svn.redmine.org/redmine/trunk@13468 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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,