Skip to content

Commit

Permalink
Merge pull request #10791 from bozana/10739
Browse files Browse the repository at this point in the history
#10739 getReviewers(): check if param reviewStage exists f…
  • Loading branch information
bozana authored Jan 10, 2025
2 parents 4e70f57 + bda0698 commit 9ec2ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/users/PKPUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public function getReviewers(Request $request): JsonResponse
->filterByContextIds([$context->getId()])
->includeReviewerData()
->filterByRoleIds([Role::ROLE_ID_REVIEWER])
->filterByWorkflowStageIds([$params['reviewStage']])
->filterByWorkflowStageIds($params['reviewStage'] ? [$params['reviewStage']] : null)
->searchPhrase($params['searchPhrase'] ?? null)
->filterByReviewerRating($params['reviewerRating'] ?? null)
->filterByReviewsCompleted($params['reviewsCompleted'][0] ?? null)
Expand Down

0 comments on commit 9ec2ae1

Please sign in to comment.