@@ -20,8 +20,7 module VersionsHelper | |||
|
20 | 20 | STATUS_BY_CRITERIAS = %w(category tracker status priority author assigned_to) |
|
21 | 21 | |
|
22 | 22 | def render_issue_status_by(version, criteria) |
|
23 | criteria ||= 'category' | |
|
24 | raise 'Unknown criteria' unless STATUS_BY_CRITERIAS.include?(criteria) | |
|
23 | criteria = 'category' unless STATUS_BY_CRITERIAS.include?(criteria) | |
|
25 | 24 | |
|
26 | 25 | h = Hash.new {|k,v| k[v] = [0, 0]} |
|
27 | 26 | begin |
General Comments 0
You need to be logged in to leave comments.
Login now