A free open source IT asset/license management system
Set location ID to null instead of 0
snipe549da2efed5a
diff --git a/app/Console/Commands/LdapSync.php b/app/Console/Commands/LdapSync.phpindex 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 fieldsfor ($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.