Return the id, not the entire status label

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-06-20 15:05:38 +01:00
parent a1ff35f6ce
commit 45dbe5cb77

View file

@ -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;