FIX_HR_CLIENT_DETAILS_ISSUE

This commit is contained in:
VENKATESHWARAN 2025-11-12 10:13:36 +05:30
parent 331ee61aba
commit 61a2a67e0b

View File

@ -1782,7 +1782,7 @@ class EmployeeRestController extends AdminController
$post_branch_id = $this->request->getGet('post_branch_id');
if ($pre_client_id != null) {
if (!empty($pre_client_id)) {
$client = $this->clientModel->where('id', $pre_client_id)->first();
@ -1810,16 +1810,14 @@ class EmployeeRestController extends AdminController
return $this->respond(['status' => 'failed', 'code' => 404, 'data' => []], 404);
}
} elseif ($post_client_id != null) {
} elseif (!empty($post_client_id)) {
$restAuthController = new RestAuthenticationController;
$queryParams = [
'client_id' => $post_client_id,
'client_branch_id' => $post_branch_id
];
return $restAuthController->callThirdPartyGETAPI($queryParams, 'getClientDetails');
} else {