Skip to content

Commit

Permalink
Acceptance link issue when the same mail address has different text c…
Browse files Browse the repository at this point in the history
…ases
  • Loading branch information
vpa24 authored and kedarkhaire committed Jun 18, 2024
1 parent e22b578 commit 701ba31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/apigee_edge_teams/src/Entity/TeamInvitation.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ public function setStatus(int $status): TeamInvitationInterface {
* {@inheritdoc}
*/
public function getRecipient(): ?string {
return $this->get('recipient')->value;
$recipientEmail = $this->get('recipient')->value;;
$user = user_load_by_mail($recipientEmail);
return $user ? $user->getEmail() : $recipientEmail;
}

/**
Expand Down

0 comments on commit 701ba31

Please sign in to comment.