Skip to content

Commit e403fcf

Browse files
#11219 Fix: Detect correctly that the revision was uploaded in internal review round
1 parent 8656f3c commit e403fcf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

classes/submission/EditDecisionDAO.inc.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,15 @@ function responseExists($decision, $submissionId) {
170170
$reviewRound = $reviewRoundDao->getReviewRound($submissionId, $stageId, $round);
171171

172172
import('lib.pkp.classes.submission.SubmissionFile'); // Bring the file constants.
173+
174+
// Choose appropriate file stage based on the stage ID
175+
$fileStage = ($stageId == WORKFLOW_STAGE_ID_INTERNAL_REVIEW) ?
176+
SUBMISSION_FILE_INTERNAL_REVIEW_REVISION :
177+
SUBMISSION_FILE_REVIEW_REVISION;
178+
173179
$submissionFilesIterator = Services::get('submissionFile')->getMany([
174180
'reviewRoundIds' => [$reviewRound->getId()],
175-
'fileStages' => [SUBMISSION_FILE_REVIEW_REVISION],
181+
'fileStages' => [$fileStage],
176182
]);
177183

178184
foreach ($submissionFilesIterator as $submissionFile) {

0 commit comments

Comments
 (0)