Allow display name to be removed
All checks were successful
continuous-integration/drone/push Build is passing

When form field is empty
This commit is contained in:
Râu Cao 2025-05-18 14:26:09 +04:00
parent fb03427d59
commit 7b0ebb761f
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -6,7 +6,11 @@ module LdapManager
end
def call
if @display_name.present?
replace_attribute @dn, :displayName, @display_name
else
delete_attribute @dn, :displayName
end
end
end
end