mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fix manager id if no manager is given in importer
This commit is contained in:
parent
192aa9eb71
commit
f2478d813c
|
@ -266,6 +266,7 @@ abstract class Importer
|
||||||
$user_array = [
|
$user_array = [
|
||||||
'full_name' => $this->findCsvMatch($row, "full_name"),
|
'full_name' => $this->findCsvMatch($row, "full_name"),
|
||||||
'email' => $this->findCsvMatch($row, "email"),
|
'email' => $this->findCsvMatch($row, "email"),
|
||||||
|
'manager_id'=> $this->fetchManager($this->findCsvMatch($row, 'manager_first_name'), $this->findCsvMatch($row, 'manager_last_name')) ? $this->fetchManager($this->findCsvMatch($row, 'manager_first_name'), $this->findCsvMatch($row, 'manager_last_name')) : null,
|
||||||
'username' => $this->findCsvMatch($row, "username"),
|
'username' => $this->findCsvMatch($row, "username"),
|
||||||
'activated' => $this->fetchHumanBoolean($this->findCsvMatch($row, 'activated')),
|
'activated' => $this->fetchHumanBoolean($this->findCsvMatch($row, 'activated')),
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue