FIX_ISSUE
This commit is contained in:
parent
978a7bbcec
commit
6200cdcf07
@ -3648,11 +3648,8 @@ class EmployeeRestController extends AdminController
|
||||
|
||||
if (!empty($emp_ticket_data)) {
|
||||
|
||||
$insured_emp_data = $this->employeeModel->where('id', $insured_emp_id)->first();
|
||||
unset($received_data['relationship']);
|
||||
$fetchData = $emp_ticket_data[0];
|
||||
if(!empty($insured_emp_data)){
|
||||
$fetchData['relationship'] = strtolower($insured_emp_data['relationship']);
|
||||
}
|
||||
|
||||
$claimStatusQuery = $this->claimStatusModel
|
||||
->select('id')
|
||||
@ -3675,7 +3672,9 @@ class EmployeeRestController extends AdminController
|
||||
$fetchData['claim_type'] = 1;
|
||||
$fetchData = array_merge($fetchData, $received_data);
|
||||
|
||||
$fetchData['relationship'] = strtolower($fetchData['relationship']) ?? $fetchData['relationship'];
|
||||
// $fetchData['relationship'] = strtolower($fetchData['relationship']) ?? $fetchData['relationship'];
|
||||
$fetchData['relationship'] = isset($fetchData['relationship']) ? strtolower($fetchData['relationship']) : null;
|
||||
|
||||
// print_r($fetchData); die;
|
||||
$insert_status = $this->ticketMaster->insert($fetchData);
|
||||
$ticket_id = $this->ticketMaster->insertID();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user