diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index e810120..e4e9577 100755 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -2709,7 +2709,7 @@ class EmployeeRestController extends AdminController foreach ($client_policy_id as $key => $value) { // $policy = $this->clientPolicyModel->where('id',$value)->where('open_for_enrollment',1)->find(); - $policy = $this->findThePolicyIsOpenForEnrollment($client_policy_id, $emp_code); + $policy = $this->findThePolicyIsOpenForEnrollment($value, $emp_code); if($policy) { $this->myLogger->logme("error", 'client policy id = '.$value.' is open for enrollment');