diff --git a/classes/invitation/invitations/userRoleAssignment/handlers/UserRoleAssignmentInviteRedirectController.php b/classes/invitation/invitations/userRoleAssignment/handlers/UserRoleAssignmentInviteRedirectController.php index 513087c441b..c0bc4ed4225 100644 --- a/classes/invitation/invitations/userRoleAssignment/handlers/UserRoleAssignmentInviteRedirectController.php +++ b/classes/invitation/invitations/userRoleAssignment/handlers/UserRoleAssignmentInviteRedirectController.php @@ -73,6 +73,8 @@ public function declineHandle(Request $request): void $request->getDispatcher()->handle404('The link is deactivated as the invitation was cancelled'); } + $this->getInvitation()->changeInvitationUserIdUsingUserEmail(); + $context = $request->getContext(); $url = PKPApplication::get()->getDispatcher()->url(