##// END OF EJS Templates
Fixed: open/closed issue counts are always 0 on reports view (postgresql)...
Jean-Philippe Lang -
r548:515caa8f3732
parent child
Show More
@@ -22,7 +22,7 module ReportsHelper
22 data.each { |row|
22 data.each { |row|
23 match = 1
23 match = 1
24 criteria.each { |k, v|
24 criteria.each { |k, v|
25 match = 0 unless row[k].to_s == v.to_s
25 match = 0 unless (row[k].to_s == v.to_s) || (k == 'closed' && row[k] == (v == 0 ? "f" : "t"))
26 } unless criteria.nil?
26 } unless criteria.nil?
27 a = a + row["total"].to_i if match == 1
27 a = a + row["total"].to_i if match == 1
28 } unless data.nil?
28 } unless data.nil?
General Comments 0
You need to be logged in to leave comments. Login now