Commit 19ca31cc authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'fix_ldap_error_message' into 'master'

Fix LdapGroupLink error message

See merge request !176
parents 405a5acb f13bcb2b
......@@ -16,7 +16,7 @@ class Groups::LdapGroupLinksController < ApplicationController
redirect_to :back, notice: 'New LDAP link saved'
end
else
redirect_to :back, alert: "Could not create new LDAP link: #{ldap_group_link.error.full_messages * ', '}"
redirect_to :back, alert: "Could not create new LDAP link: #{ldap_group_link.errors.full_messages * ', '}"
end
end
......@@ -38,4 +38,4 @@ class Groups::LdapGroupLinksController < ApplicationController
def ldap_group_link_params
params.require(:ldap_group_link).permit(:cn, :group_access)
end
end
\ No newline at end of file
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment