Commit 86271156 authored by jplang's avatar jplang

Silently ignore invalid status_by param.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 96fb5371
......@@ -20,8 +20,7 @@ module VersionsHelper
STATUS_BY_CRITERIAS = %w(category tracker status priority author assigned_to)
def render_issue_status_by(version, criteria)
criteria ||= 'category'
raise 'Unknown criteria' unless STATUS_BY_CRITERIAS.include?(criteria)
criteria = 'category' unless STATUS_BY_CRITERIAS.include?(criteria)
h = {|k,v| k[v] = [0, 0]}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment