Skip to content
Snippets Groups Projects
Commit a92e0a6a authored by Nikolay Lobachev's avatar Nikolay Lobachev
Browse files

Issue #3414521 by LOBsTerr: Update validation messages

parent c9977bb4
No related branches found
Tags 2.3.1
No related merge requests found
......@@ -74,7 +74,7 @@ class PreventDuplicatedConstraintValidator extends ConstraintValidator implement
// Check if user already a member.
$membership = $this->groupMembershipLoader->load($group, $user);
if (!empty($membership)) {
$this->context->addViolation($this->t('User with such email already a member of @group.', ['@group' => $group->label()]));
$this->context->addViolation($this->t('User with such email is already a member of @group.', ['@group' => $group->label()]));
return;
}
}
......@@ -87,7 +87,7 @@ class PreventDuplicatedConstraintValidator extends ConstraintValidator implement
// if user was invited using entity reference field.
$membership = $this->groupMembershipLoader->load($group, $invitee);
if (!empty($membership)) {
$this->context->addViolation($this->t('User with such email already a member of @group.', ['@group' => $group->label()]));
$this->context->addViolation($this->t('User is already a member of @group.', ['@group' => $group->label()]));
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment