From 325a66060e0726761ac64750caa86d046245fef2 Mon Sep 17 00:00:00 2001 From: yuenmichelle1 Date: Tue, 14 Mar 2023 09:56:48 -0500 Subject: [PATCH] update identity_group_name validator to add errors (#4141) --- lib/identity_group_name_validator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/identity_group_name_validator.rb b/lib/identity_group_name_validator.rb index 817fd09fd..04ce8757f 100644 --- a/lib/identity_group_name_validator.rb +++ b/lib/identity_group_name_validator.rb @@ -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")