diff --git a/app/Importer/Importer.php b/app/Importer/Importer.php index 203e788d23..1ee90b399c 100644 --- a/app/Importer/Importer.php +++ b/app/Importer/Importer.php @@ -77,6 +77,7 @@ abstract class Importer 'manager_first_name' => 'manager first name', 'manager_last_name' => 'manager last name', 'min_amt' => 'minimum quantity', + 'remote' => 'remote', ]; /** * Map of item fields->csv names @@ -288,6 +289,7 @@ abstract class Importer 'department_id' => '', 'username' => $this->findCsvMatch($row, 'username'), 'activated' => $this->fetchHumanBoolean($this->findCsvMatch($row, 'activated')), + 'remote' => $this->fetchHumanBoolean(($this->findCsvMatch($row, 'remote'))), ]; // Maybe we're lucky and the user already exists. diff --git a/app/Importer/UserImporter.php b/app/Importer/UserImporter.php index 101021ea7b..b062c16bca 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->fetchHumanBoolean($this->findCsvMatch($row, 'remote')) ==1 ) ? '1' : 0; $user_department = $this->findCsvMatch($row, 'department'); if ($this->shouldUpdateField($user_department)) { diff --git a/public/js/dist/all.js b/public/js/dist/all.js index 32d27fd054..65efb28914 100644 Binary files a/public/js/dist/all.js and b/public/js/dist/all.js differ 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,