Skip to content

Commit

Permalink
pkp/pkp-lib#8092 Update collector syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed May 30, 2023
1 parent ca36dc7 commit addb6da
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions JatsTemplateDownloadHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,10 @@ function download($args, $request) {
if ($request->getUserVar('stageId') != WORKFLOW_STAGE_ID_PRODUCTION) $request->getDispatcher()->handle404();

$submissionId = $request->getUserVar('submissionId');
$layoutFiles = Repo::submissionFile()->getMany(
Repo::submissionFile()->getCollector()
$layoutFiles = Repo::submissionFile()->getCollector()
->filterBySubmissionIds([$submissionId])
->filterByFileStages([SubmissionFile::SUBMISSION_FILE_PRODUCTION_READY])
);
->getMany();
foreach ($layoutFiles as $layoutFile) {
if ($layoutFile->getId() != $request->getUserVar('submissionFileId') || $layoutFile->getData('fileId') != $request->getUserVar('fileId')) continue;

Expand Down

0 comments on commit addb6da

Please sign in to comment.