A free open source IT asset/license management system
Return the id, not the entire status label
snipe45dbe5cb77a6
diff --git a/app/Importer/AssetImporter.php b/app/Importer/AssetImporter.phpindex 96a4d0c9b2..02ffa2077c 100644--- a/app/Importer/AssetImporter.php+++ b/app/Importer/AssetImporter.php@@ -20,7 +20,7 @@ class AssetImporter extends ItemImporter{parent::__construct($filename);- $this->defaultStatusLabelId = Statuslabel::first();+ $this->defaultStatusLabelId = Statuslabel::first()->id;if (!is_null(Statuslabel::deployable()->first())) {$this->defaultStatusLabelId = Statuslabel::deployable()->first()->id;