A free open source IT asset/license management system
Added location notes to importer
snipe1f1e1401cf24
diff --git a/app/Importer/LocationImporter.php b/app/Importer/LocationImporter.phpindex 5a87d069e5..1fcef6625d 100644--- a/app/Importer/LocationImporter.php+++ b/app/Importer/LocationImporter.php@@ -74,6 +74,8 @@ class LocationImporter extends ItemImporter$this->item['ldap_ou'] = trim($this->findCsvMatch($row, 'ldap_ou'));$this->item['manager'] = trim($this->findCsvMatch($row, 'manager'));$this->item['manager_username'] = trim($this->findCsvMatch($row, 'manager_username'));+ $this->item['notes'] = trim($this->findCsvMatch($row, 'notes'));+if ($this->findCsvMatch($row, 'parent_location')) {$this->item['parent_id'] = $this->createOrFetchLocation(trim($this->findCsvMatch($row, 'parent_location')));diff --git a/app/Livewire/Importer.php b/app/Livewire/Importer.phpindex aee6b852d4..eea319a400 100644--- a/app/Livewire/Importer.php+++ b/app/Livewire/Importer.php@@ -342,6 +342,7 @@ class Importer extends Component'manager_username' => trans('general.importer.manager_username'),'manager' => trans('general.importer.manager_full_name'),'parent_location' => trans('admin/locations/table.parent'),+ 'notes' => trans('general.notes'),];$this->assetmodels_fields = [