Skip to content

Commit

Permalink
update identity_group_name validator to add errors (#4141)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuenmichelle1 authored Mar 14, 2023
1 parent 6912c54 commit 325a660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/identity_group_name_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ def validate(user)
if identity_group = user.try(:identity_membership).try(:user_group)
unless identity_group.valid?
error_list = name_errors(identity_group)
user.errors[:"identity_group.display_name"].concat(error_list)
error_list.each { |name_err| user.errors.add(:"identity_group.display_name", name_err) }
end
else
user.errors.add(:identity_group, "can't be blank")
Expand Down

0 comments on commit 325a660

Please sign in to comment.