From 625b7961ab3cac4002866327fd919a6a94201fd6 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 8 Sep 2015 09:49:15 +0200 Subject: [PATCH] Added new category. --- app/models/ticket/state.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/ticket/state.rb b/app/models/ticket/state.rb index d5141c5b7..af94bf33c 100644 --- a/app/models/ticket/state.rb +++ b/app/models/ticket/state.rb @@ -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'] )