diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-07-28 16:38:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-07-28 16:38:09 +0000 |
commit | 27c3299f328164f3e1abbece59248f1f68ef0b8c (patch) | |
tree | e77ed97a314a971996098450ac7f9ea0f26fd32b /app | |
parent | df7e56b13c26b22f9be78e5dcc7690accca3b5cb (diff) | |
download | redmine-27c3299f328164f3e1abbece59248f1f68ef0b8c.tar.gz redmine-27c3299f328164f3e1abbece59248f1f68ef0b8c.zip |
Fixed that open/closed counts on issues summary are not displayed with SQLServer (#14369).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12060 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/reports_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/reports_helper.rb b/app/helpers/reports_helper.rb index 9d52b673f..48647bcc3 100644 --- a/app/helpers/reports_helper.rb +++ b/app/helpers/reports_helper.rb @@ -24,7 +24,7 @@ module ReportsHelper data.each { |row| match = 1 criteria.each { |k, v| - match = 0 unless (row[k].to_s == v.to_s) || (k == 'closed' && row[k] == (v == 0 ? "f" : "t")) + match = 0 unless (row[k].to_s == v.to_s) || (k == 'closed' && (v == 0 ? ['f', false] : ['t', true]).include?(row[k])) } unless criteria.nil? a = a + row["total"].to_i if match == 1 } unless data.nil? |