From 7a72169cda29287328ddb2d691018388e014f9f9 Mon Sep 17 00:00:00 2001 From: Nicolas Boulay Date: Fri, 16 Feb 2024 15:40:40 -0500 Subject: [PATCH] pkp/pkp-lib#9453 Fixed a null date when the reviewer has declined the review --- pages/reviewer/PKPReviewerHandler.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/reviewer/PKPReviewerHandler.php b/pages/reviewer/PKPReviewerHandler.php index 86885b5e6c8..24b86bf0f07 100644 --- a/pages/reviewer/PKPReviewerHandler.php +++ b/pages/reviewer/PKPReviewerHandler.php @@ -79,7 +79,9 @@ public function submission(array $args, PKPRequest $request): void 'submissionId' => $submissionId, 'reviewRoundId' => $reviewRoundId, 'reviewRoundNumber' => $reviewAssignment->getRound(), - 'submittedOn' => $reviewAssignment->getDateCompleted() + 'submittedOn' => $reviewAssignment->getDeclined() + ? $reviewAssignment->getDateConfirmed() + : $reviewAssignment->getDateCompleted(), ]; } } @@ -94,7 +96,7 @@ public function submission(array $args, PKPRequest $request): void $templateMgr->setState([ 'isReviewRoundHistoryEnabled' => Config::getVar('features', 'enable_review_round_history'), 'pageInitConfig' => [ - 'reviewRoundHistories' => $reviewRoundHistories + 'reviewRoundHistories' => $reviewRoundHistories, ] ]);