Commit 5f97e751 authored by jplang's avatar jplang
Browse files

Use #fixed_issues association (#19455).

Patch by Sebastian Paluch.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent f208f4f5
......@@ -57,9 +57,9 @@ module VersionsHelper
h = {|k,v| k[v] = [0, 0]}
# Total issue count
Issue.where(:fixed_version_id => {|c,s| h[c][0] = s} {|c,s| h[c][0] = s}
# Open issues count => {|c,s| h[c][1] = s} {|c,s| h[c][1] = s}
rescue ActiveRecord::RecordNotFound
# When grouping by an association, Rails throws this exception if there's no result (bug)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment