]> source.dussan.org Git - redmine.git/commitdiff
Fixed test failure with MySQL introduced by r13467.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 21 Oct 2014 18:44:33 +0000 (18:44 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 21 Oct 2014 18:44:33 +0000 (18:44 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13468 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 8fb1935f0efd557d46654bd97446988d7f607406..1c1c99deca1764ec7f6b7b3e6efab164dcd0f394 100644 (file)
@@ -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,