From 1f1e1401cf242fb9a9d1370ed741bac6a49f4341 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 11 Feb 2025 00:32:58 +0000 Subject: [PATCH] Added location notes to importer Signed-off-by: snipe --- app/Importer/LocationImporter.php | 2 ++ app/Livewire/Importer.php | 1 + 2 files changed, 3 insertions(+) diff --git a/app/Importer/LocationImporter.php b/app/Importer/LocationImporter.php index 5a87d069e..1fcef6625 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.php index aee6b852d..eea319a40 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 = [