active priority
only active priority is showing in ticket edit page and email setting page
This commit is contained in:
@@ -76,8 +76,8 @@ class EmailsController extends Controller
|
|||||||
$departments = $department->get();
|
$departments = $department->get();
|
||||||
// fetch all the helptopics from the helptopic table
|
// fetch all the helptopics from the helptopic table
|
||||||
$helps = $help->get();
|
$helps = $help->get();
|
||||||
// fetch all the types of priority from the ticket_priority table
|
// fetch all the types of active priority from the ticket_priority table
|
||||||
$priority = $ticket_priority->get();
|
$priority = $ticket_priority->where('status','=',1)->get();
|
||||||
// fetch all the types of mailbox protocols from the mailbox_protocols table
|
// fetch all the types of mailbox protocols from the mailbox_protocols table
|
||||||
$mailbox_protocols = $mailbox_protocol->get();
|
$mailbox_protocols = $mailbox_protocol->get();
|
||||||
|
|
||||||
@@ -321,8 +321,8 @@ class EmailsController extends Controller
|
|||||||
$count = $email->count();
|
$count = $email->count();
|
||||||
// get all the helptopic
|
// get all the helptopic
|
||||||
$helps = $help->get();
|
$helps = $help->get();
|
||||||
// get all the priority
|
// get all active the priority
|
||||||
$priority = $ticket_priority->get();
|
$priority = $ticket_priority->where('status','=',1)->get();
|
||||||
// get all the mailbox protocols
|
// get all the mailbox protocols
|
||||||
$mailbox_protocols = $mailbox_protocol->get();
|
$mailbox_protocols = $mailbox_protocol->get();
|
||||||
|
|
||||||
|
@@ -872,7 +872,7 @@ if ($thread->title != "") {
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>{!! Lang::get('lang.priority') !!} <span class="text-red"> *</span></label>
|
<label>{!! Lang::get('lang.priority') !!} <span class="text-red"> *</span></label>
|
||||||
<?php $ticket_prioritys = App\Model\helpdesk\Ticket\Ticket_Priority::all() ?>
|
<?php $ticket_prioritys = App\Model\helpdesk\Ticket\Ticket_Priority::where('status','=',1)->get() ?>
|
||||||
<select class="form-control" name="ticket_priority">
|
<select class="form-control" name="ticket_priority">
|
||||||
@foreach($ticket_prioritys as $ticket_priority)
|
@foreach($ticket_prioritys as $ticket_priority)
|
||||||
<option value="{!! $ticket_priority->priority_id !!}" <?php
|
<option value="{!! $ticket_priority->priority_id !!}" <?php
|
||||||
|
Reference in New Issue
Block a user