From a9d82cd3c976f2f5c2c2cdb1de74b4d571421320 Mon Sep 17 00:00:00 2001 From: Touhidur Rahman Date: Fri, 16 Aug 2024 17:56:04 +0600 Subject: [PATCH] pkp/pkp-lib#10292 Controlled Vocab DAO to Eloquent Model --- plugins/reports/articles/ArticleReportPlugin.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/reports/articles/ArticleReportPlugin.php b/plugins/reports/articles/ArticleReportPlugin.php index e3a419a496e..1bf75fd89f9 100644 --- a/plugins/reports/articles/ArticleReportPlugin.php +++ b/plugins/reports/articles/ArticleReportPlugin.php @@ -24,7 +24,7 @@ use PKP\security\Role; use PKP\stageAssignment\StageAssignment; use PKP\submission\PKPSubmission; -use PKP\submission\SubmissionAgencyDAO; +use PKP\submission\SubmissionAgencyVocab; use PKP\submission\SubmissionDisciplineDAO; use PKP\submission\SubmissionKeywordDAO; use PKP\submission\SubmissionSubjectDAO; @@ -88,7 +88,6 @@ public function display($args, $request) $submissionKeywordDao = DAORegistry::getDAO('SubmissionKeywordDAO'); /** @var SubmissionKeywordDAO $submissionKeywordDao */ $submissionSubjectDao = DAORegistry::getDAO('SubmissionSubjectDAO'); /** @var SubmissionSubjectDAO $submissionSubjectDao */ $submissionDisciplineDao = DAORegistry::getDAO('SubmissionDisciplineDAO'); /** @var SubmissionDisciplineDAO $submissionDisciplineDao */ - $submissionAgencyDao = DAORegistry::getDAO('SubmissionAgencyDAO'); /** @var SubmissionAgencyDAO $submissionAgencyDao */ $userGroups = Repo::userGroup()->getCollector() ->filterByContextIds([$context->getId()]) @@ -162,7 +161,7 @@ public function display($args, $request) $subjects = $submissionSubjectDao->getSubjects($submission->getCurrentPublication()->getId()); $disciplines = $submissionDisciplineDao->getDisciplines($submission->getCurrentPublication()->getId()); $keywords = $submissionKeywordDao->getKeywords($submission->getCurrentPublication()->getId()); - $agencies = $submissionAgencyDao->getAgencies($submission->getCurrentPublication()->getId()); + $agencies = SubmissionAgencyVocab::getAgencies($submission->getCurrentPublication()->getId()); // Store the submission results $results[] = [