FIX_ISSUE
This commit is contained in:
parent
59208c9a51
commit
00d115b745
@ -4803,7 +4803,14 @@ class EmployeeRestController extends AdminController
|
|||||||
$data = $this->getDataFromHrFileUploadTable($search_data);
|
$data = $this->getDataFromHrFileUploadTable($search_data);
|
||||||
$table = "hr_file_upload";
|
$table = "hr_file_upload";
|
||||||
}else{
|
}else{
|
||||||
$client_data = $this->clientModel->where('MD5(id)', $search_data['client_id'])->first();
|
|
||||||
|
if (is_string($search_data['client_id']) && preg_match('/^[a-f0-9]{32}$/i', $search_data['client_id'])) {
|
||||||
|
$client_data = $this->clientModel->where('MD5(id)', $search_data['client_id'])->first();
|
||||||
|
$search_data['client_id'] = $client_data['id'];
|
||||||
|
} else {
|
||||||
|
$client_data = $this->clientModel->where('id', $search_data['client_id'])->first();
|
||||||
|
}
|
||||||
|
|
||||||
if($client_data['hr_file_processed_by'] == 1){
|
if($client_data['hr_file_processed_by'] == 1){
|
||||||
$data = $this->getDataFromHrFilesTable($search_data);
|
$data = $this->getDataFromHrFilesTable($search_data);
|
||||||
$table = "files";
|
$table = "files";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user