Skip to content

A free open source IT asset/license management system

Added tag_color to importer

snipe3aa7f0b7fed9
diff --git a/app/Importer/CategoryImporter.php b/app/Importer/CategoryImporter.php
index 39b477c96a..f9ca22fbab 100644
--- a/app/Importer/CategoryImporter.php
+++ b/app/Importer/CategoryImporter.php
@@ -70,6 +70,7 @@ class CategoryImporter extends ItemImporter
$this->item['use_default_eula'] = trim(($this->fetchHumanBoolean($this->findCsvMatch($row, 'use_default_eula'))) == 1) ? 1 : 0;
$this->item['require_acceptance'] = trim(($this->fetchHumanBoolean($this->findCsvMatch($row, 'require_acceptance'))) == 1) ? 1 : 0;
$this->item['checkin_email'] = trim(($this->fetchHumanBoolean($this->findCsvMatch($row, 'checkin_email'))) == 1) ? 1 : 0;
+ $this->item['tag_color'] = trim($this->findCsvMatch($row, 'tag_color'));
Log::debug('Item array is: ');
diff --git a/app/Importer/ManufacturerImporter.php b/app/Importer/ManufacturerImporter.php
index 4c627e9d99..460b42c811 100644
--- a/app/Importer/ManufacturerImporter.php
+++ b/app/Importer/ManufacturerImporter.php
@@ -72,6 +72,7 @@ class ManufacturerImporter extends ItemImporter
$this->item['support_url'] = trim($this->findCsvMatch($row, 'support_url'));
$this->item['warranty_lookup_url'] = trim($this->findCsvMatch($row, 'warranty_lookup_url'));
$this->item['notes'] = trim($this->findCsvMatch($row, 'notes'));
+ $this->item['tag_color'] = trim($this->findCsvMatch($row, 'tag_color'));
Log::debug('Item array is: ');
diff --git a/app/Importer/SupplierImporter.php b/app/Importer/SupplierImporter.php
index 7878aff835..398a4f4d3b 100644
--- a/app/Importer/SupplierImporter.php
+++ b/app/Importer/SupplierImporter.php
@@ -76,6 +76,7 @@ class SupplierImporter extends ItemImporter
$this->item['contact'] = trim($this->findCsvMatch($row, 'contact'));
$this->item['url'] = trim($this->findCsvMatch($row, 'url'));
$this->item['notes'] = trim($this->findCsvMatch($row, 'notes'));
+ $this->item['tag_color'] = trim($this->findCsvMatch($row, 'tag_color'));
Log::debug('Item array is: ');