From 549da2efed5a8bfc9c5ee55736cb83f0e470d42f Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 2 Jul 2025 17:15:18 +0100 Subject: [PATCH] Set location ID to null instead of 0 Signed-off-by: snipe --- app/Console/Commands/LdapSync.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/LdapSync.php b/app/Console/Commands/LdapSync.php index f90aeafd8d..88015b14a1 100644 --- a/app/Console/Commands/LdapSync.php +++ b/app/Console/Commands/LdapSync.php @@ -182,7 +182,7 @@ class LdapSync extends Command // Inject location information fields for ($i = 0; $i < $results['count']; $i++) { $results[$i]['ldap_location_override'] = false; - $results[$i]['location_id'] = 0; + $results[$i]['location_id'] = null; } // Grab subsets based on location-specific DNs, and overwrite location for these users.