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'); $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(); $client = $this->clientModel->where('id', $pre_client_id)->first();
@ -1810,8 +1810,7 @@ class EmployeeRestController extends AdminController
return $this->respond(['status' => 'failed', 'code' => 404, 'data' => []], 404); return $this->respond(['status' => 'failed', 'code' => 404, 'data' => []], 404);
} }
} elseif ($post_client_id != null) { } elseif (!empty($post_client_id)) {
$restAuthController = new RestAuthenticationController; $restAuthController = new RestAuthenticationController;
@ -1819,7 +1818,6 @@ class EmployeeRestController extends AdminController
'client_id' => $post_client_id, 'client_id' => $post_client_id,
'client_branch_id' => $post_branch_id 'client_branch_id' => $post_branch_id
]; ];
return $restAuthController->callThirdPartyGETAPI($queryParams, 'getClientDetails'); return $restAuthController->callThirdPartyGETAPI($queryParams, 'getClientDetails');
} else { } else {