mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Merge pull request #10534 from inietov/feature/add_remaining_address_field_to_user_import_develop
Add Zip field in the User Importer for develop [sc-18556]
This commit is contained in:
commit
b153138d1e
|
@ -50,6 +50,7 @@ class UserImporter extends ItemImporter
|
||||||
$this->item['city'] = $this->findCsvMatch($row, 'city');
|
$this->item['city'] = $this->findCsvMatch($row, 'city');
|
||||||
$this->item['state'] = $this->findCsvMatch($row, 'state');
|
$this->item['state'] = $this->findCsvMatch($row, 'state');
|
||||||
$this->item['country'] = $this->findCsvMatch($row, 'country');
|
$this->item['country'] = $this->findCsvMatch($row, 'country');
|
||||||
|
$this->item['zip'] = $this->findCsvMatch($row, 'zip');
|
||||||
$this->item['activated'] = ($this->fetchHumanBoolean($this->findCsvMatch($row, 'activated')) == 1) ? '1' : 0;
|
$this->item['activated'] = ($this->fetchHumanBoolean($this->findCsvMatch($row, 'activated')) == 1) ? '1' : 0;
|
||||||
$this->item['employee_num'] = $this->findCsvMatch($row, 'employee_num');
|
$this->item['employee_num'] = $this->findCsvMatch($row, 'employee_num');
|
||||||
$this->item['department_id'] = $this->createOrFetchDepartment($this->findCsvMatch($row, 'department'));
|
$this->item['department_id'] = $this->createOrFetchDepartment($this->findCsvMatch($row, 'department'));
|
||||||
|
|
|
@ -183,6 +183,7 @@
|
||||||
{id: 'city', text: 'City' },
|
{id: 'city', text: 'City' },
|
||||||
{id: 'state', text: 'State' },
|
{id: 'state', text: 'State' },
|
||||||
{id: 'country', text: 'Country' },
|
{id: 'country', text: 'Country' },
|
||||||
|
{id: 'zip', text: 'ZIP' },
|
||||||
|
|
||||||
],
|
],
|
||||||
customFields: this.customFields,
|
customFields: this.customFields,
|
||||||
|
|
Loading…
Reference in a new issue