Possible fix for #14915

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-06-20 14:47:46 +01:00
parent 077a6949e2
commit a1ff35f6ce

View file

@ -20,7 +20,9 @@ class AssetImporter extends ItemImporter
{ {
parent::__construct($filename); parent::__construct($filename);
if (!is_null(Statuslabel::first())) { $this->defaultStatusLabelId = Statuslabel::first();
if (!is_null(Statuslabel::deployable()->first())) {
$this->defaultStatusLabelId = Statuslabel::deployable()->first()->id; $this->defaultStatusLabelId = Statuslabel::deployable()->first()->id;
} }
} }