From 259a62dad5a8ae1541e8f055bd462de558869e53 Mon Sep 17 00:00:00 2001 From: Vitalii Bezsheiko Date: Mon, 6 Nov 2023 18:58:12 +0200 Subject: [PATCH] pkp/pkp-lib#8887 Ensure review assignment belongs to the expected submission --- ReviewReportPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReviewReportPlugin.php b/ReviewReportPlugin.php index 6b763bd..656ea59 100644 --- a/ReviewReportPlugin.php +++ b/ReviewReportPlugin.php @@ -177,7 +177,7 @@ public function display($args, $request) $columns[$index] = isset($recommendations[$row->$index]) ? __($recommendations[$row->$index]) : ''; break; case 'comments': - $reviewAssignment = Repo::reviewAssignment()->get($row->review_id); + $reviewAssignment = Repo::reviewAssignment()->get($row->review_id, $row->submission_id); $body = ''; if ($reviewAssignment->getDateCompleted() != null && ($reviewFormId = $reviewAssignment->getReviewFormId())) {