FIX_HR_CLIENT_DETAILS_ISSUE
This commit is contained in:
parent
331ee61aba
commit
61a2a67e0b
@ -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,16 +1810,14 @@ 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;
|
||||||
|
|
||||||
$queryParams = [
|
$queryParams = [
|
||||||
'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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user