A free open source IT asset/license management system
Check for status_id key - related to #3928
snipe6c283de60a96
diff --git a/app/Importer/AssetImporter.php b/app/Importer/AssetImporter.phpindex 33719cbe7d..08772e4abb 100644--- a/app/Importer/AssetImporter.php+++ b/app/Importer/AssetImporter.php@@ -63,7 +63,9 @@ class AssetImporter extends ItemImporter$this->item['image'] = $this->findCsvMatch($row, "image");$this->item['warranty_months'] = intval($this->findCsvMatch($row, "warranty"));$this->item['model_id'] = $this->createOrFetchAssetModel($row);- if (!$this->item['status_id'] && !$editingAsset) {++ // If no status ID is found+ if (!array_key_exists('status_id', $this->item) && !$editingAsset) {$this->log("No status field found, defaulting to first status.");$this->item['status_id'] = $this->defaultStatusLabelId;}