mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Make sure the status label is deployable
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
d02904c9a3
commit
4ccbfb56a4
|
@ -7,8 +7,10 @@ use App\Models\AssetModel;
|
||||||
use App\Models\Statuslabel;
|
use App\Models\Statuslabel;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Events\CheckoutableCheckedIn;
|
use App\Events\CheckoutableCheckedIn;
|
||||||
|
use Carbon\CarbonImmutable;
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
|
|
||||||
class AssetImporter extends ItemImporter
|
class AssetImporter extends ItemImporter
|
||||||
{
|
{
|
||||||
|
@ -19,7 +21,7 @@ class AssetImporter extends ItemImporter
|
||||||
parent::__construct($filename);
|
parent::__construct($filename);
|
||||||
|
|
||||||
if (!is_null(Statuslabel::first())) {
|
if (!is_null(Statuslabel::first())) {
|
||||||
$this->defaultStatusLabelId = Statuslabel::first()->id;
|
$this->defaultStatusLabelId = Statuslabel::deployable()->first()->id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue