Skip to content

Commit

Permalink
pkp/pkp-lib#10292 Controlled vocab dao to eloquent model
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir authored and asmecher committed Jan 4, 2025
1 parent 14906b4 commit 613059b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ReviewReportDAO.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
use PKP\db\DAO;
use PKP\facades\Locale;
use PKP\submission\SubmissionComment;
use PKP\user\InterestManager;

class ReviewReportDAO extends DAO
{
Expand Down Expand Up @@ -111,7 +110,6 @@ public function getReviewReport($contextId)
]
);

$interestManager = new InterestManager();
$assignedReviewerIds = $this->retrieve(
'SELECT r.reviewer_id
FROM review_assignments r
Expand All @@ -124,7 +122,7 @@ public function getReviewReport($contextId)
foreach ($assignedReviewerIds as $row) {
if (!array_key_exists($row->reviewer_id, $interests)) {
$user = Repo::user()->get($row->reviewer_id, true);
$reviewerInterests = $interestManager->getInterestsString($user);
$reviewerInterests = Repo::userInterest()->getInterestsString($user);
if (!empty($reviewerInterests)) {
$interests[$row->reviewer_id] = $reviewerInterests;
}
Expand Down

0 comments on commit 613059b

Please sign in to comment.