Skip to content

Commit f648038

Browse files
#11310 Show upload button also for internal review stage
1 parent 55179b3 commit f648038

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

pages/authorDashboard/PKPAuthorDashboardHandler.php

+9-4
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,15 @@ public function setupTemplate($request)
191191

192192
if (!$editorDecisions->isEmpty()) {
193193
$lastDecision = $editorDecisions->last();
194-
$revisionDecisions = [
195-
Decision::PENDING_REVISIONS,
196-
Decision::RESUBMIT
197-
];
194+
$revisionDecisions = $submission->getData('stageId') === WORKFLOW_STAGE_ID_EXTERNAL_REVIEW
195+
? [
196+
Decision::PENDING_REVISIONS,
197+
Decision::RESUBMIT
198+
] : [
199+
Decision::PENDING_REVISIONS_INTERNAL,
200+
Decision::RESUBMIT_INTERNAL
201+
];
202+
198203
if (in_array($lastDecision->getData('decision'), $revisionDecisions)) {
199204
$actionArgs['submissionId'] = $submission->getId();
200205
$actionArgs['stageId'] = $submission->getData('stageId');

0 commit comments

Comments
 (0)