From 1a8d75e8de9b8f50776889904ac7b13bcf27cc8e Mon Sep 17 00:00:00 2001 From: arindam85 Date: Mon, 31 Oct 2016 15:13:53 +0530 Subject: [PATCH] active priority only active priority is showing in ticket edit page and email setting page --- app/Http/Controllers/Admin/helpdesk/EmailsController.php | 8 ++++---- .../default1/agent/helpdesk/ticket/timeline.blade.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/Admin/helpdesk/EmailsController.php b/app/Http/Controllers/Admin/helpdesk/EmailsController.php index 7b2f65df9..ad96e68db 100644 --- a/app/Http/Controllers/Admin/helpdesk/EmailsController.php +++ b/app/Http/Controllers/Admin/helpdesk/EmailsController.php @@ -76,8 +76,8 @@ class EmailsController extends Controller $departments = $department->get(); // fetch all the helptopics from the helptopic table $helps = $help->get(); - // fetch all the types of priority from the ticket_priority table - $priority = $ticket_priority->get(); + // fetch all the types of active priority from the ticket_priority table + $priority = $ticket_priority->where('status','=',1)->get(); // fetch all the types of mailbox protocols from the mailbox_protocols table $mailbox_protocols = $mailbox_protocol->get(); @@ -321,8 +321,8 @@ class EmailsController extends Controller $count = $email->count(); // get all the helptopic $helps = $help->get(); - // get all the priority - $priority = $ticket_priority->get(); + // get all active the priority + $priority = $ticket_priority->where('status','=',1)->get(); // get all the mailbox protocols $mailbox_protocols = $mailbox_protocol->get(); diff --git a/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php b/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php index 4b34db387..c016f11f8 100644 --- a/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php +++ b/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php @@ -872,7 +872,7 @@ if ($thread->title != "") {
- + get() ?>