diff --git a/app/Controllers/ThzController.php b/app/Controllers/ThzController.php index 71e4c78e..e6703a0e 100644 --- a/app/Controllers/ThzController.php +++ b/app/Controllers/ThzController.php @@ -81,6 +81,9 @@ class ThzController extends BaseController $data = $this->request->getGet(); + if ($returnType === 'web' && in_array(get_role_id(), [2,3,4])) { + $data['assign_to'] = $data['assign_to'] ?? get_session_userid(); + } $tickets = $this->fetchTicketsBasedOnrole($data); diff --git a/app/Views/thz_list.php b/app/Views/thz_list.php index 3824473b..eaead156 100644 --- a/app/Views/thz_list.php +++ b/app/Views/thz_list.php @@ -254,13 +254,13 @@ table thead th { - + - + @@ -716,7 +716,7 @@ $(document).ready(function() { "<'row'<'col-sm-5'i><'col-sm-7'p>>", buttons: [ { - text: ' Create New Ticket ', + text: ' Create New Ticket ', className: 'btn app-btn-primary app-btn-border-radius app-text-white mr-2', action: function(e, dt, node, config) { openTicket(); @@ -724,18 +724,18 @@ $(document).ready(function() { }, { extend: 'collection', - text: ' Export ', + text: ' Export ', className: 'btn app-btn-secondary app-btn-border-radius app-text-white', buttons: [ { extend: 'csv', - text: ' CSV ', + text: ' CSV ', title: 'Tickets', className: 'app-btn-primary app-text-white', }, { extend: 'excel', - text: ' EXCEL ', + text: ' EXCEL ', title: 'Tickets', exportOptions: { orthogonal: 'sort' diff --git a/app/Views/thz_notes.php b/app/Views/thz_notes.php index e60ee794..c8f7187a 100644 --- a/app/Views/thz_notes.php +++ b/app/Views/thz_notes.php @@ -161,6 +161,7 @@ hr{

Details

+ +
Ticket NoTicket ID Name Policy Number Ticket Type Subject StatusAssign ToAssign To Created At Updated At