* Fixed missing oauth tables during setup.

* Fixed missing manager_id and department_id
This commit is contained in:
Wes Hulette 2018-10-17 16:38:13 -04:00 committed by snipe
parent 465b69516d
commit a975117eaf

View file

@ -324,8 +324,8 @@ abstract class Importer
$user->last_name = $user_array['last_name'];
$user->username = $user_array['username'];
$user->email = $user_array['email'];
$user->manager_id = $user_array['manager_id'];
$user->department_id = $user_array['department_id'];
$user->manager_id = $user_array['manager_id'] ?? null;
$user->department_id = $user_array['department_id'] ?? null;
$user->activated = 1;
$user->password = $this->tempPassword;