Skip to content

A free open source IT asset/license management system

adds csvmatch for remote. Im a bit lost though lol

Godfrey M36901d271bd7
diff --git a/app/Importer/UserImporter.php b/app/Importer/UserImporter.php
index 101021ea7b..ab5d8c4dd6 100644
--- a/app/Importer/UserImporter.php
+++ b/app/Importer/UserImporter.php
@@ -57,6 +57,7 @@ class UserImporter extends ItemImporter
$this->item['employee_num'] = $this->findCsvMatch($row, 'employee_num');
$this->item['department_id'] = $this->createOrFetchDepartment($this->findCsvMatch($row, 'department'));
$this->item['manager_id'] = $this->fetchManager($this->findCsvMatch($row, 'manager_first_name'), $this->findCsvMatch($row, 'manager_last_name'));
+ $this->item['remote'] = $this->findCsvMatch($row, 'remote');
$user_department = $this->findCsvMatch($row, 'department');
if ($this->shouldUpdateField($user_department)) {
diff --git a/resources/assets/js/components/importer/importer-file.vue b/resources/assets/js/components/importer/importer-file.vue
index f9455cf1ce..eeeed7c722 100644
--- a/resources/assets/js/components/importer/importer-file.vue
+++ b/resources/assets/js/components/importer/importer-file.vue
@@ -194,6 +194,7 @@
{id: 'state', text: 'State' },
{id: 'country', text: 'Country' },
{id: 'zip', text: 'ZIP' },
+ {id: 'remote', text: 'Remote'},
],
customFields: this.customFields,