FIX_ISSUE

This commit is contained in:
VENKATESHWARAN 2026-02-23 16:07:38 +05:30
parent 2be4cef665
commit c28688f786

View File

@ -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 = [];