Allow display name to be removed
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
When form field is empty
This commit is contained in:
parent
fb03427d59
commit
7b0ebb761f
@ -6,7 +6,11 @@ module LdapManager
|
||||
end
|
||||
|
||||
def call
|
||||
replace_attribute @dn, :displayName, @display_name
|
||||
if @display_name.present?
|
||||
replace_attribute @dn, :displayName, @display_name
|
||||
else
|
||||
delete_attribute @dn, :displayName
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user