summaryrefslogtreecommitdiffstats
path: root/app/helpers/versions_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/versions_helper.rb')
-rw-r--r--app/helpers/versions_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/versions_helper.rb b/app/helpers/versions_helper.rb
index fe1fb8815..9d088a9d9 100644
--- a/app/helpers/versions_helper.rb
+++ b/app/helpers/versions_helper.rb
@@ -57,9 +57,9 @@ module VersionsHelper
h = Hash.new {|k,v| k[v] = [0, 0]}
begin
# Total issue count
- version.fixed_issues.group(criteria).count.each {|c,s| h[c][0] = s}
+ version.fixed_issues.visible.group(criteria).count.each {|c,s| h[c][0] = s}
# Open issues count
- version.fixed_issues.open.group(criteria).count.each {|c,s| h[c][1] = s}
+ version.fixed_issues.visible.open.group(criteria).count.each {|c,s| h[c][1] = s}
rescue ActiveRecord::RecordNotFound
# When grouping by an association, Rails throws this exception if there's no result (bug)
end