Skip to content

Commit

Permalink
#9453 Fixed a null date when the reviewer has declined the review
Browse files Browse the repository at this point in the history
  • Loading branch information
nibou230 authored and defstat committed May 1, 2024
1 parent 563ec5c commit 7a72169
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pages/reviewer/PKPReviewerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
];
}
}
Expand All @@ -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,
]
]);

Expand Down

0 comments on commit 7a72169

Please sign in to comment.