Skip to content

Commit

Permalink
pkp#10480 Fix currentUserRecommendation in Submission schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Jan 15, 2025
1 parent 22232e5 commit c27a681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/submission/maps/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ protected function getPropertyStages(Enumerable $stageAssignments, Submission $s
}

// Set own recommendations of the current user
if ($currentUser == $decision->getData('editorId')) {
if ($currentUser->getId() == $decision->getData('editorId')) {
$stages[$decision->getData('stageId')]['currentUserRecommendation'] = $recommendation;
}
}
Expand Down

0 comments on commit c27a681

Please sign in to comment.