From 48a916ab775f910c8ad02367d0ef4cf0db6b18f3 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 20 Jan 2025 16:38:31 +0000 Subject: [PATCH] Check that the ID has a value Signed-off-by: snipe --- app/Importer/LocationImporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Importer/LocationImporter.php b/app/Importer/LocationImporter.php index 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();