Update inbox fix
This commit is contained in:
@@ -1035,14 +1035,13 @@ class FilterController extends Controller
|
||||
public function getGMT()
|
||||
{
|
||||
$system = \App\Model\helpdesk\Settings\System::select('time_zone')->first();
|
||||
$timezone = \DB::table('timezone')->select('location')->where('name', '=', $system->time_zone)->first();
|
||||
$timezone = \DB::table('timezone')->select('location')->where('id', '=', $system->time_zone)->first();
|
||||
$location = '(GMT) London';
|
||||
if ($timezone) {
|
||||
$location = $timezone->location;
|
||||
}
|
||||
$tz = explode(')', substr($location, stripos($location, 'T')
|
||||
+ 1));
|
||||
|
||||
return $tz[0];
|
||||
}
|
||||
|
||||
|
@@ -2659,7 +2659,12 @@ class TicketController extends Controller
|
||||
{
|
||||
return \Datatable::table()
|
||||
->addColumn(
|
||||
'<a class="checkbox-toggle"><i class="fa fa-square-o fa-2x"></i></a>', Lang::get('lang.subject'), Lang::get('lang.ticket_id'), Lang::get('lang.from'), Lang::get('lang.assigned_to'), Lang::get('lang.last_activity')
|
||||
'<a class="checkbox-toggle"><i class="fa fa-square-o fa-2x"></i></a>',
|
||||
Lang::get('lang.subject'),
|
||||
Lang::get('lang.ticket_id'),
|
||||
Lang::get('lang.from'),
|
||||
Lang::get('lang.assigned_to'),
|
||||
Lang::get('lang.last_activity')
|
||||
)->noScript();
|
||||
}
|
||||
|
||||
@@ -2691,7 +2696,7 @@ class TicketController extends Controller
|
||||
|
||||
return "<center><input type='checkbox' name='select_all[]' id='".$tickets->id."' onclick='someFunction(this.id)' class='selectval icheckbox_flat-blue ".$tickets->color.' '.$rep."' value='".$tickets->id."'></input></center>";
|
||||
})
|
||||
->addColumn('title', function ($tickets) {
|
||||
->editColumn('title', function ($tickets) {
|
||||
if (isset($tickets->ticket_title)) {
|
||||
$string = utfEncoding($tickets->ticket_title);
|
||||
if (strlen($string) > 25) {
|
||||
@@ -2783,15 +2788,7 @@ class TicketController extends Controller
|
||||
}
|
||||
}
|
||||
})
|
||||
->editColumn('updated_at', function ($tickets) {
|
||||
$TicketDatarow = $tickets->updated_at;
|
||||
$updated = '--';
|
||||
if ($TicketDatarow) {
|
||||
$updated = faveoDate($tickets->updated_at);
|
||||
}
|
||||
|
||||
return '<span style="display:none">'.$updated.'</span>'.$updated;
|
||||
})
|
||||
|
||||
->make();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user