OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cf1b68
)
Fixed: open/closed issue counts are always 0 on reports view (postgresql)
author
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Mon, 28 May 2007 09:09:37 +0000
(09:09 +0000)
committer
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Mon, 28 May 2007 09:09:37 +0000
(09:09 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@551
e93f8b46
-1217-0410-a6f0-
8f06a7374b81
app/helpers/reports_helper.rb
patch
|
blob
|
history
diff --git
a/app/helpers/reports_helper.rb
b/app/helpers/reports_helper.rb
index
af7a1a9
..
21276f7
100644
(file)
--- 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?