Fixed error message in link dialog.

This commit is contained in:
Martin Edenhofer 2017-01-09 15:00:03 +01:00
parent 4601993a15
commit 336bae8598

View file

@ -10,7 +10,7 @@ class Ticket::State < ApplicationModel
list tickets by customer
states = Ticket::State.by_category('open') # open|closed|work_on|work_on_all|pending_reminder|pending_action
states = Ticket::State.by_category('open') # open|closed|work_on|work_on_all|pending_reminder|pending_action|merged
returns:
@ -43,6 +43,10 @@ returns:
return Ticket::State.where(
state_type_id: Ticket::StateType.where(name: %w(closed))
)
elsif category == 'merged'
return Ticket::State.where(
state_type_id: Ticket::StateType.where(name: %w(merged))
)
end
raise "Unknown category '#{category}'"
end