FIX_EXCEL_ERROR_FILE_ID_ERROR : RV
This commit is contained in:
parent
6f319144f6
commit
e17fd43594
@ -131,8 +131,8 @@ class EmployeeController extends AdminController
|
||||
// print_r($this->request->getPost('policies'));
|
||||
// print_r($this->request->getPost('upload-action-type'));
|
||||
// die();
|
||||
$empServiceController = new EmployeeServiceController();
|
||||
$res = $empServiceController->excelFileFormatValidation(['file_id' => '42']);
|
||||
// $empServiceController = new EmployeeServiceController();
|
||||
// $res = $empServiceController->excelFileFormatValidation(['file_id' => '42']);
|
||||
// dd($res);
|
||||
|
||||
// $empServiceController = new EmployeeServiceController();
|
||||
@ -249,13 +249,13 @@ class EmployeeController extends AdminController
|
||||
{
|
||||
$file_id = $this->request->uri->getSegment(3);
|
||||
$empServiceController = new EmployeeServiceController();
|
||||
$result['file_id'] = $file_id;
|
||||
|
||||
// Render views and capture output
|
||||
$result = $empServiceController->getExcelErrorData($file_id);
|
||||
|
||||
if ($result != 0) {
|
||||
|
||||
$result['file_id'] = $file_id;
|
||||
echo view('excel_errors', $result);
|
||||
} else if ($result == 0) {
|
||||
|
||||
@ -811,7 +811,7 @@ class EmployeeController extends AdminController
|
||||
|
||||
|
||||
// Create a new filename for the modified Excel file
|
||||
$newFileName = 'modified_' . $fileName;
|
||||
$newFileName = 'error_with_highlight_' . $fileName;
|
||||
|
||||
// Save the modified Excel file to a new location
|
||||
$newFilePath = WRITEPATH . '/uploads/excel/' . $newFileName;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user