Tests for the CSV import fix

#1007
This commit is contained in:
Nabeel Shahzad
2021-01-25 16:49:32 -05:00
parent 5821067231
commit 3f92191126
5 changed files with 27 additions and 7 deletions

View File

@@ -117,12 +117,7 @@ class ImportService extends Service
// turn it into a collection and run some filtering
$row = collect($row)->map(function ($val, $index) {
$val = trim($val);
if ($val === '') {
return;
}
return $val;
return trim($val);
})->toArray();
// Try to validate