Skip to content

Commit

Permalink
FundingRequestInitSubscriber: Don't try to resolve empty remote conta…
Browse files Browse the repository at this point in the history
…ct ID
  • Loading branch information
Dominic Tubach committed Nov 2, 2023
1 parent d5793b3 commit 7b5d2b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ public function onRemoteRequestInit(InitApiRequestEvent $event): void {
if (!$request instanceof GetFieldsAction || NULL !== $remoteContactId) {
$this->requestContext->setRemote(TRUE);
}
if (NULL !== $remoteContactId) {
$this->requestContext->setRemoteContactId($remoteContactId);
if (NULL !== $remoteContactId && '' !== $remoteContactId) {
$contactId = $this->remoteContactIdResolver->getContactId($remoteContactId);
$request->setExtraParam('contactId', $contactId);
$this->requestContext->setRemoteContactId($remoteContactId);
$this->requestContext->setResolvedContactId($contactId);
}
}
Expand Down

0 comments on commit 7b5d2b1

Please sign in to comment.