diff --git a/app/Importer/AssetImporter.php b/app/Importer/AssetImporter.php index 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;