Skip to content

Commit

Permalink
#58 Fix type error with remote galleys
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Oct 31, 2024
1 parent e8bbf5b commit 422737e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JatsTemplatePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ function toXml(&$record, $format = null) {
// Provide the full-text.
$fileService = Services::get('file');
foreach ($galleys as $galley) {
$galleyFile = Repo::submissionFile()->get($galley->getData('submissionFileId'));
$galleyFile = Repo::submissionFile()->get((int) $galley->getData('submissionFileId'));
if (!$galleyFile) continue;

$filepath = $fileService->get($galleyFile->getData('fileId'))->path;
Expand Down

0 comments on commit 422737e

Please sign in to comment.