FIX_ISSUE
This commit is contained in:
parent
44ec953af4
commit
cb98a2768a
@ -503,6 +503,7 @@ $routes->group("employeeRest", ['filter' => ['GlobalPostFileUploadGuard', 'appSi
|
|||||||
$routes->post("hrFileUpload", "EmployeeRestController::hrFileUpload");
|
$routes->post("hrFileUpload", "EmployeeRestController::hrFileUpload");
|
||||||
|
|
||||||
$routes->get("copyActiveEmployeeAndDependentDetails", "EmployeeRestController::copyActiveEmployeeAndDependentDetails");
|
$routes->get("copyActiveEmployeeAndDependentDetails", "EmployeeRestController::copyActiveEmployeeAndDependentDetails");
|
||||||
|
$routes->get("getExcelFileErrors/(:any)", "EmployeeController::getExcelFileErrors/$1");
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -520,7 +520,7 @@ class EmployeeController extends AdminController
|
|||||||
if(!empty($error) && $retun_type == 'api'){
|
if(!empty($error) && $retun_type == 'api'){
|
||||||
$send = isset($error['error_summary'][5]) || isset($error['error_summary'][6]) ? true : false;
|
$send = isset($error['error_summary'][5]) || isset($error['error_summary'][6]) ? true : false;
|
||||||
if($send){
|
if($send){
|
||||||
return $this->respond(['status' => false, 'code' => 404, 'message' => $error['error_data'], 'data' => []], 200);
|
return $this->respond(['status' => false, 'code' => 404, 'message' => $error['error_data'] ?? 'System error', 'data' => []], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user