mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Set default values for status labels in import
This commit is contained in:
parent
54a0d0de0e
commit
52425f62c5
|
@ -456,6 +456,10 @@ class ObjectImportCommand extends Command
|
||||||
$status = new Statuslabel();
|
$status = new Statuslabel();
|
||||||
$status->name = $asset_statuslabel_name;
|
$status->name = $asset_statuslabel_name;
|
||||||
|
|
||||||
|
$status->deployable = 1;
|
||||||
|
$status->pending = 0;
|
||||||
|
$status->archived = 0;
|
||||||
|
|
||||||
|
|
||||||
if (!$this->option('testrun')) {
|
if (!$this->option('testrun')) {
|
||||||
if ($status->save()) {
|
if ($status->save()) {
|
||||||
|
|
Loading…
Reference in a new issue