A free open source IT asset/license management system
Check that the ID has a value
snipe48a916ab775f
diff --git a/app/Importer/LocationImporter.php b/app/Importer/LocationImporter.phpindex b875d66c6a..58db51affa 100644--- a/app/Importer/LocationImporter.php+++ b/app/Importer/LocationImporter.php@@ -39,7 +39,7 @@ class LocationImporter extends ItemImporter$editingLocation = false;- if ($this->findCsvMatch($row, 'id')) {+ if ($this->findCsvMatch($row, 'id')!='') {$location = Location::find($this->findCsvMatch($row, 'id'));} else {$location = Location::where('name', '=', $this->findCsvMatch($row, 'name'))->first();