mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-10 11:13:06 +00:00
add space after comma to VersionsHelper
git-svn-id: http://svn.redmine.org/redmine/trunk@19951 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d8733f7fe4
commit
615187ab20
@ -53,12 +53,12 @@ module VersionsHelper
|
||||
|
||||
def render_issue_status_by(version, criteria)
|
||||
criteria = 'tracker' unless STATUS_BY_CRITERIAS.include?(criteria)
|
||||
h = Hash.new {|k,v| k[v] = [0, 0]}
|
||||
h = Hash.new {|k, v| k[v] = [0, 0]}
|
||||
begin
|
||||
# Total issue count
|
||||
version.visible_fixed_issues.group(criteria).count.each {|c,s| h[c][0] = s}
|
||||
version.visible_fixed_issues.group(criteria).count.each {|c, s| h[c][0] = s}
|
||||
# Open issues count
|
||||
version.visible_fixed_issues.open.group(criteria).count.each {|c,s| h[c][1] = s}
|
||||
version.visible_fixed_issues.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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user