Skip to content

Commit

Permalink
pkp/pkp-lib#8887 Refactor review assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Oct 30, 2023
1 parent 9439d01 commit 41db36f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ReviewReportPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use APP\core\Application;
use PKP\core\PKPString;
use PKP\db\DAORegistry;
use APP\facades\Repo;
use PKP\plugins\ReportPlugin;
use PKP\reviewForm\ReviewFormElementDAO;
use PKP\reviewForm\ReviewFormResponseDAO;
Expand Down Expand Up @@ -145,8 +146,6 @@ public function display($args, $request)
fprintf($fp, chr(0xEF) . chr(0xBB) . chr(0xBF));
fputcsv($fp, array_values($columns));

/** @var ReviewAssignmentDAO */
$reviewAssignmentDao = DAORegistry::getDAO('ReviewAssignmentDAO');
/** @var ReviewFormResponseDAO */
$reviewFormResponseDao = DAORegistry::getDAO('ReviewFormResponseDAO');
/** @var ReviewFormElementDAO */
Expand Down Expand Up @@ -179,7 +178,7 @@ public function display($args, $request)
$columns[$index] = isset($recommendations[$row->$index]) ? __($recommendations[$row->$index]) : '';
break;
case 'comments':
$reviewAssignment = $reviewAssignmentDao->getById($row->review_id);
$reviewAssignment = Repo::reviewAssignment()->get($row->review_id);
$body = '';

if ($reviewAssignment->getDateCompleted() != null && ($reviewFormId = $reviewAssignment->getReviewFormId())) {
Expand Down

0 comments on commit 41db36f

Please sign in to comment.