Skip to content

Commit

Permalink
pkp/pkp-lib#8887 Remove deprecated DAO call
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Nov 13, 2023
1 parent b85678b commit 9781be1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions classes/decision/types/traits/InInternalReviewRound.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
use PKP\components\fileAttachers\ReviewFiles;
use PKP\components\fileAttachers\Upload;
use PKP\context\Context;
use PKP\db\DAORegistry;
use PKP\decision\types\traits\WithReviewAssignments;
use PKP\submission\reviewAssignment\ReviewAssignmentDAO;
use PKP\submission\reviewRound\ReviewRound;
use PKP\submissionFile\SubmissionFile;

Expand Down Expand Up @@ -79,9 +77,10 @@ protected function getFileAttachers(Submission $submission, Context $context, ?R
];

if ($reviewRound) {
/** @var ReviewAssignmentDAO $reviewAssignmentDAO */
$reviewAssignmentDAO = DAORegistry::getDAO('ReviewAssignmentDAO');
$reviewAssignments = $reviewAssignmentDAO->getByReviewRoundId($reviewRound->getId());
$reviewAssignments = Repo::reviewAssignment()->getCollector()
->filterByReviewRoundIds([$reviewRound->getId()])
->getMany()
->toArray();
$reviewerFiles = [];
if (!empty($reviewAssignments)) {
$reviewerFiles = Repo::submissionFile()->getCollector()
Expand Down

0 comments on commit 9781be1

Please sign in to comment.