Skip to content

Commit

Permalink
#10739 getReviewers(): check if param reviewStage exists for filterin…
Browse files Browse the repository at this point in the history
…g by workflow stage
  • Loading branch information
bozana committed Jan 10, 2025
1 parent 4e70f57 commit bda0698
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 bda0698

Please sign in to comment.