lrf402788946 4 lat temu
rodzic
commit
23be701179
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      app/service/school.js

+ 2 - 1
app/service/school.js

@@ -252,8 +252,9 @@ class SchoolService extends CrudService {
       for (let i = 0; i < cols.length; i++) {
         const col = cols[i];
         if (!col) break;
-        let val = noWhite(row.getCell(col.colIndex));
+        let val = _.trim(row.getCell(col.colIndex));
         if (col.column === 'id_number') val = val.toUpperCase();
+        if (val && val !== '') val = noWhite(val);
         stu[col.column] = val;
       }
       stuList.push(stu);