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