Merge pull request #13397 from uberbrady/fix_locationless_ldap_sync
Fixed #13372: Put guard around assigning location via LDAP
This commit is contained in:
commit
32d8d8c50e
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ class LdapSync extends Command
|
||||||
$user->jobtitle = $item['jobtitle'];
|
$user->jobtitle = $item['jobtitle'];
|
||||||
$user->country = $item['country'];
|
$user->country = $item['country'];
|
||||||
$user->department_id = $department->id;
|
$user->department_id = $department->id;
|
||||||
$user->location_id = $location->id;
|
$user->location_id = $location ? $location->id : null;
|
||||||
|
|
||||||
if($item['manager'] != null) {
|
if($item['manager'] != null) {
|
||||||
// Check Cache first
|
// Check Cache first
|
||||||
|
|
Loading…
Add table
Reference in a new issue