diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index bad00c73..6f8f0a81 100755 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -4526,11 +4526,12 @@ class EmployeeRestController extends AdminController $post_data = [ 'client_id' => $this->request->getPost('client_id') ?? null, - 'client_branch_id' => $this->request->getPost('client_branch_id'), - 'policy_id' => $this->request->getPost('policy_id'), - 'file_action' => $this->request->getPost('file_action'), - 'created_by' => $this->request->getPost('created_by'), - 'file_name' => $this->request->getFile('file_name') + 'client_branch_id' => $this->request->getPost('client_branch_id') ?? null, + 'policy_id' => $this->request->getPost('policy_id') ?? null, + 'file_action' => $this->request->getPost('file_action') ?? null, + 'created_by' => $this->request->getPost('created_by') ?? null, + 'file_name' => $this->request->getFile('file_name') ?? null, + 'policy_no' => $this->request->getPost('policy_no') ?? null, ]; // print_r($post_data); die;