A free open source IT asset/license management system
Possible fix for #14915
snipea1ff35f6ce13
diff --git a/app/Importer/AssetImporter.php b/app/Importer/AssetImporter.phpindex 6b3f2f1d00..96a4d0c9b2 100644--- a/app/Importer/AssetImporter.php+++ b/app/Importer/AssetImporter.php@@ -20,7 +20,9 @@ class AssetImporter extends ItemImporter{parent::__construct($filename);- if (!is_null(Statuslabel::first())) {+ $this->defaultStatusLabelId = Statuslabel::first();++ if (!is_null(Statuslabel::deployable()->first())) {$this->defaultStatusLabelId = Statuslabel::deployable()->first()->id;}}