From 3785ffa01de719a7b78018822c52f2cd4434f44b Mon Sep 17 00:00:00 2001 From: Nicolas Boulay Date: Fri, 19 Jan 2024 11:15:02 -0500 Subject: [PATCH] pkp/pkp-lib#9453 Expose the right recommandation value --- api/v1/reviews/PKPReviewController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/v1/reviews/PKPReviewController.php b/api/v1/reviews/PKPReviewController.php index 1e491d2d5a0..2ceeb8facc9 100644 --- a/api/v1/reviews/PKPReviewController.php +++ b/api/v1/reviews/PKPReviewController.php @@ -134,6 +134,7 @@ public function getHistory(Request $illuminateRequest): JsonResponse } $reviewAssignmentProps = Repo::reviewAssignment()->getSchemaMap()->map($reviewAssignment); + $recommendation = $reviewAssignment->getLocalizedRecommendation(); $reviewAssignmentId = $reviewAssignment->getId(); $submissionCommentDao = DAORegistry::getDAO('SubmissionCommentDAO'); @@ -155,6 +156,7 @@ public function getHistory(Request $illuminateRequest): JsonResponse 'publicationTitle' => $publicationTitle, 'declineEmail' => $declineEmail, 'reviewAssignment' => $reviewAssignmentProps, + 'recommendation' => $recommendation, 'comments' => $comments, 'privateComments' => $privateComments, 'displayFiles' => $displayFiles,