From 304ccaa30eda67c630bee7dbe53c46ed3bfa56a5 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 6 Mar 2023 14:28:24 -0800 Subject: [PATCH] Added byod to asset importer Signed-off-by: snipe --- app/Importer/AssetImporter.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Importer/AssetImporter.php b/app/Importer/AssetImporter.php index 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 found if (! array_key_exists('status_id', $this->item) && ! $editingAsset) {