Open jardakotesovec opened 1 month ago
In AuthorReviewerGridCellProvider:
if ($columnId == 'actions') {
switch ($this->getCellState($row, $column)) {
case ReviewAssignment::REVIEW_ASSIGNMENT_STATUS_COMPLETE:
case ReviewAssignment::REVIEW_ASSIGNMENT_STATUS_THANKED:
case ReviewAssignment::REVIEW_ASSIGNMENT_STATUS_RECEIVED:
$user = $request->getUser();
return [new ReviewNotesLinkAction($request, $reviewAssignment, $submission, $user, 'grid.users.reviewer.AuthorReviewerGridHandler', true)];
default:
return null;
}
}
Needs to change to, as template expects array.
if ($columnId == 'actions') {
switch ($this->getCellState($row, $column)) {
case ReviewAssignment::REVIEW_ASSIGNMENT_STATUS_COMPLETE:
case ReviewAssignment::REVIEW_ASSIGNMENT_STATUS_THANKED:
case ReviewAssignment::REVIEW_ASSIGNMENT_STATUS_RECEIVED:
$user = $request->getUser();
return [new ReviewNotesLinkAction($request, $reviewAssignment, $submission, $user, 'grid.users.reviewer.AuthorReviewerGridHandler', true)];
default:
return [];
}
}
Describe the bug In specific scenario when the open review is accepted, but not finished - it fails to load the reviewer grid on author dashboard.
To Reproduce Steps to reproduce the behavior:
What application are you using? OJS, OMP or OPS version 3.3, 3.4 and 3.5
Additional information