Skip to content

A free open source IT asset/license management system

Fixed AD checkbox

snipe174f05654dd5
diff --git a/app/Livewire/LdapSettings.php b/app/Livewire/LdapSettings.php
index ddf8a79068..411e2c19ef 100644
--- a/app/Livewire/LdapSettings.php
+++ b/app/Livewire/LdapSettings.php
@@ -1484,6 +1484,11 @@ class LdapSettings extends Component
return;
}
+ // Clear AD here so the component state matches what the user sees.
+ if ($property === 'is_ad' && !$this->is_ad && $this->ad_domain !== '') {
+ $this->ad_domain = '';
+ }
+
// Every string-typed prop that participates in the LDAP
// handshake or a downstream test surface, grouped by wizard
// step. Shared between the trim-on-assignment and the