mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Return the id, not the entire status label
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
a1ff35f6ce
commit
45dbe5cb77
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue