From e55af97ab54b1a134f9db9bca5c3c5482c474293 Mon Sep 17 00:00:00 2001 From: Dimitris Efstathiou Date: Sun, 24 Nov 2024 23:24:16 +0200 Subject: [PATCH] pkp/pkp-lib#10630 Add Change invitation case to decline --- .../handlers/UserRoleAssignmentInviteRedirectController.php | 2 ++ 1 file changed, 2 insertions(+) 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(