We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e22b578 commit 701ba31Copy full SHA for 701ba31
modules/apigee_edge_teams/src/Entity/TeamInvitation.php
@@ -190,7 +190,9 @@ public function setStatus(int $status): TeamInvitationInterface {
190
* {@inheritdoc}
191
*/
192
public function getRecipient(): ?string {
193
- return $this->get('recipient')->value;
+ $recipientEmail = $this->get('recipient')->value;;
194
+ $user = user_load_by_mail($recipientEmail);
195
+ return $user ? $user->getEmail() : $recipientEmail;
196
}
197
198
/**
0 commit comments