Skip to content

A free open source IT asset/license management system

Set default values for status labels in import

snipe52425f62c506
diff --git a/app/Console/Commands/ObjectImportCommand.php b/app/Console/Commands/ObjectImportCommand.php
index eff28c8f76..6098a14bb0 100644
--- a/app/Console/Commands/ObjectImportCommand.php
+++ b/app/Console/Commands/ObjectImportCommand.php
@@ -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()) {