Set default values for status labels in import

This commit is contained in:
snipe 2016-07-19 15:49:04 -07:00
parent 54a0d0de0e
commit 52425f62c5

View file

@ -456,6 +456,10 @@ class ObjectImportCommand extends Command
$status = new Statuslabel();
$status->name = $asset_statuslabel_name;
$status->deployable = 1;
$status->pending = 0;
$status->archived = 0;
if (!$this->option('testrun')) {
if ($status->save()) {