summaryrefslogtreecommitdiffstats
path: root/app/helpers/reports_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-28 09:09:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-28 09:09:37 +0000
commit515caa8f37325654ed424aff03b0654cab6ac487 (patch)
tree8f80866ae105425392e10157dacf7084ded36c3b /app/helpers/reports_helper.rb
parent4cf1b6896938ec30106d187f0571058503fc853e (diff)
downloadredmine-515caa8f37325654ed424aff03b0654cab6ac487.tar.gz
redmine-515caa8f37325654ed424aff03b0654cab6ac487.zip
Fixed: open/closed issue counts are always 0 on reports view (postgresql)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@551 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/reports_helper.rb')
-rw-r--r--app/helpers/reports_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/reports_helper.rb b/app/helpers/reports_helper.rb
index af7a1a972..21276f707 100644
--- a/app/helpers/reports_helper.rb
+++ b/app/helpers/reports_helper.rb
@@ -22,7 +22,7 @@ module ReportsHelper
data.each { |row|
match = 1
criteria.each { |k, v|
- match = 0 unless row[k].to_s == v.to_s
+ match = 0 unless (row[k].to_s == v.to_s) || (k == 'closed' && row[k] == (v == 0 ? "f" : "t"))
} unless criteria.nil?
a = a + row["total"].to_i if match == 1
} unless data.nil?