Fixed error message in link dialog.
This commit is contained in:
parent
4601993a15
commit
336bae8598
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue