Skip to content

Commit

Permalink
#10480 Submission stages property to array
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Oct 17, 2024
1 parent 4d26bcd commit 9ba4db5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions classes/submission/maps/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,11 +555,6 @@ protected function getPropertyStages(Enumerable $stageAssignments, Submission $s
'isDecidingEditorAssigned' => false,
'isCurrentUserDecidingEditor' => false,
];

// Only for the review stages
if (in_array($stageId, [WORKFLOW_STAGE_ID_EXTERNAL_REVIEW, WORKFLOW_STAGE_ID_INTERNAL_REVIEW])) {
$stages[$stageId]['currentUserRecommendation'] = true;
}
}

$recommendations = [];
Expand Down Expand Up @@ -613,7 +608,7 @@ protected function getPropertyStages(Enumerable $stageAssignments, Submission $s
continue;
}

$stages[$groupStage->stageId]['roles'] = [
$stages[$groupStage->stageId]['currentUserAssignedRoles'] = [
$userGroup->getRoleId(),
];

Expand Down Expand Up @@ -746,7 +741,7 @@ protected function getPropertyStages(Enumerable $stageAssignments, Submission $s
}
}

return $stages;
return array_values($stages);
}

/**
Expand Down

0 comments on commit 9ba4db5

Please sign in to comment.