Commit 80e6e8e3 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang Committed by Eric Davis

Silently ignore invalid status_by param.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5180 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 544b4bdd
...@@ -20,8 +20,7 @@ module VersionsHelper ...@@ -20,8 +20,7 @@ module VersionsHelper
STATUS_BY_CRITERIAS = %w(category tracker status priority author assigned_to) STATUS_BY_CRITERIAS = %w(category tracker status priority author assigned_to)
def render_issue_status_by(version, criteria) def render_issue_status_by(version, criteria)
criteria ||= 'category' criteria = 'category' unless STATUS_BY_CRITERIAS.include?(criteria)
raise 'Unknown criteria' 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 begin
......
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