From a1ff35f6ce132114929448bb4ea4beb34ea7b3ad Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 20 Jun 2024 14:47:46 +0100 Subject: [PATCH] Possible fix for #14915 Signed-off-by: snipe --- app/Importer/AssetImporter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Importer/AssetImporter.php b/app/Importer/AssetImporter.php index 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; } }