Added new category.
This commit is contained in:
parent
27472e3877
commit
625b7961ab
1 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,7 @@ class Ticket::State < ApplicationModel
|
|||
|
||||
list tickets by customer
|
||||
|
||||
states = Ticket::State.by_category('open') # open|closed|work_on|work_on_all|pending_reminder
|
||||
states = Ticket::State.by_category('open') # open|closed|work_on|work_on_all|pending_reminder|pending_action
|
||||
|
||||
returns:
|
||||
|
||||
|
@ -26,6 +26,10 @@ returns:
|
|||
return Ticket::State.where(
|
||||
state_type_id: Ticket::StateType.where( name: ['pending reminder'] )
|
||||
)
|
||||
elsif category == 'pending_action'
|
||||
return Ticket::State.where(
|
||||
state_type_id: Ticket::StateType.where( name: ['pending action'] )
|
||||
)
|
||||
elsif category == 'work_on'
|
||||
return Ticket::State.where(
|
||||
state_type_id: Ticket::StateType.where( name: ['new', 'open'] )
|
||||
|
|
Loading…
Reference in a new issue