diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index bf64515c..fb17d59a 100755 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -3998,6 +3998,9 @@ class EmployeeRestController extends AdminController $ticket_type = $this->ticketController->ticketType; $claim_type = $this->ticketController->claimType; + unset($claim_type[1][2]); + unset($claim_type[1][4]); + $ticket_type = array_map(fn($value, $key) => (object) ['id' => $key, 'name' => $value], array_values($ticket_type), array_keys($ticket_type)); return $this->response->setJSON(['ticket_type' => $ticket_type, 'claim_type' => $claim_type])->setStatusCode(200); } @@ -4029,6 +4032,8 @@ class EmployeeRestController extends AdminController $ticket_type = $this->ticketController->ticketType; $claim_type = $this->ticketController->claimType; + unset($claim_type[1][2]); + unset($claim_type[1][4]); $filtered = [];