From fcabc5af52fa1d7f4b091427e7724bc0589c8fff Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Fri, 30 Aug 2024 09:42:13 -0300 Subject: [PATCH] pkp/pkp-lib#8564 order export by issue ordering in pubmed plugin --- plugins/importexport/pubmed/PubMedExportPlugin.inc.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/importexport/pubmed/PubMedExportPlugin.inc.php b/plugins/importexport/pubmed/PubMedExportPlugin.inc.php index 19aa83d6939..85015e56c44 100644 --- a/plugins/importexport/pubmed/PubMedExportPlugin.inc.php +++ b/plugins/importexport/pubmed/PubMedExportPlugin.inc.php @@ -165,12 +165,9 @@ function exportIssues($issueIds, $context, $user) { $sectionDao = DAORegistry::getDAO('SectionDAO'); foreach ($issueIds as $issueId) { $sections = $sectionDao->getByIssueId($issueId); - $submissionsInSections = []; - $submissionsInSections[] = Services::get('submission')->getInSections($issueId, $context->getId()); + $submissionsInSections = Services::get('submission')->getInSections($issueId, $context->getId()); foreach ($sections as $section) { - foreach ($submissionsInSections as $articles) { - $input = array_merge($input, $articles[$section->getId()]['articles']); - } + $input = array_merge($input, $submissionsInSections[$section->getId()]['articles']); } }