Check for blank values on import and omit them (#1266)
* Check for blank values on import and omit them * Add paused status to the pirep changed
This commit is contained in:
@@ -212,6 +212,11 @@ class FlightImporter extends ImportExport
|
||||
$count = 0;
|
||||
$subfleets = $this->parseMultiColumnValues($col);
|
||||
foreach ($subfleets as $subfleet_type) {
|
||||
$subfleet_type = trim($subfleet_type);
|
||||
if (empty($subfleet_type)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$subfleet = Subfleet::firstOrCreate(
|
||||
['type' => $subfleet_type],
|
||||
['name' => $subfleet_type]
|
||||
|
||||
Reference in New Issue
Block a user