Merge remote-tracking branch 'origin/develop'

This commit is contained in:
snipe 2023-08-08 08:19:15 +01:00
commit 3091d2cdf0

View file

@ -243,7 +243,7 @@ class LdapSync extends Command
$user->jobtitle = $item['jobtitle'];
$user->country = $item['country'];
$user->department_id = $department->id;
$user->location_id = $location->id;
$user->location_id = $location ? $location->id : null;
if($item['manager'] != null) {
// Check Cache first