A free open source IT asset/license management system
Added byod to asset importer
snipe304ccaa30eda
diff --git a/app/Importer/AssetImporter.php b/app/Importer/AssetImporter.phpindex 10f3883bcc..d4b6665cb3 100644--- a/app/Importer/AssetImporter.php+++ b/app/Importer/AssetImporter.php@@ -80,6 +80,8 @@ class AssetImporter extends ItemImporter$asset->requestable = $this->fetchHumanBoolean($this->findCsvMatch($row, 'requestable'));$this->item['warranty_months'] = intval($this->findCsvMatch($row, 'warranty_months'));$this->item['model_id'] = $this->createOrFetchAssetModel($row);+ $this->item['byod'] =($this->fetchHumanBoolean($this->findCsvMatch($row, 'byod')) ==1 ) ? '1' : 0;+// If no status ID is foundif (! array_key_exists('status_id', $this->item) && ! $editingAsset) {