mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -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);
|
parent::__construct($filename);
|
||||||
|
|
||||||
$this->defaultStatusLabelId = Statuslabel::first();
|
$this->defaultStatusLabelId = Statuslabel::first()->id;
|
||||||
|
|
||||||
if (!is_null(Statuslabel::deployable()->first())) {
|
if (!is_null(Statuslabel::deployable()->first())) {
|
||||||
$this->defaultStatusLabelId = Statuslabel::deployable()->first()->id;
|
$this->defaultStatusLabelId = Statuslabel::deployable()->first()->id;
|
||||||
|
|
Loading…
Reference in a new issue