perfecto
This commit is contained in:
@@ -15,9 +15,14 @@ if(isset($_FILES['f_csv'])) {
|
||||
$arr_associate = $arr_associate_data->Results;
|
||||
|
||||
if(count($arr_associate) > 0) { //check define columns
|
||||
$spreadsheet = IOFactory::load($file, IReader::READ_DATA_ONLY);
|
||||
$spreadsheet = IOFactory::load($file);
|
||||
$worksheet = $spreadsheet->getActiveSheet();
|
||||
$arr_info = $worksheet->toArray();
|
||||
$arr_info = $worksheet->toArray();
|
||||
|
||||
// remove empty rows
|
||||
$arr_info = array_filter($arr_info, function($row) {
|
||||
return count(array_filter($row)) > 0;
|
||||
});
|
||||
|
||||
$productsRefNumber_excelName = '';
|
||||
$reportsNumberLab_excelName = '';
|
||||
@@ -76,7 +81,7 @@ if(isset($_FILES['f_csv'])) {
|
||||
$verify_flag = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($verify_flag) {
|
||||
//check result_TestName field
|
||||
|
||||
Reference in New Issue
Block a user