Merge pull request #11854 from inietov/fixes/location_issue_during_import
Fixed #11847 404 error during Import if a checkout type of location is specified and no checkout location is passed
This commit is contained in:
commit
a7b83fc531
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ class ItemImporter extends Importer
|
||||||
return $this->createOrFetchUser($row);
|
return $this->createOrFetchUser($row);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strtolower($this->item['checkout_class']) === 'location') {
|
if (strtolower($this->item['checkout_class']) === 'location' && $this->findCsvMatch($row, 'checkout_location') != null ) {
|
||||||
return Location::findOrFail($this->createOrFetchLocation($this->findCsvMatch($row, 'checkout_location')));
|
return Location::findOrFail($this->createOrFetchLocation($this->findCsvMatch($row, 'checkout_location')));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue