No reviewers returned from the API endoint users/reviewers #10739
Labels
Bug:1:Low
A bug that does not have a severe consequence or affects a small number of users.
Milestone
S. https://forum.pkp.sfu.ca/t/rest-api-reviewers-list/93608
The API call api/v1/users/reviewers without the parameter 'reviewStage' returns no items, because it is not checked if the parameter 'reviewStage' exists before applying the filter by workflow stage in this line: https://github.com/pkp/pkp-lib/blob/stable-3_4_0/api/v1/users/PKPUserHandler.php#L224.
In 3.3 the function filterByReviewStage() takes only one stage. This seems to be changed in 3.4, so that the function filterByWorkflowStageIds() takes an array, however the parameter is still only one stage and not an array.
PRs:
The text was updated successfully, but these errors were encountered: