Skip to content

Commit

Permalink
Merge pull request #710 from bozana/10082-main
Browse files Browse the repository at this point in the history
pkp/pkp-lib#10082 consider same file IDs in getTotalGalleyViews()
  • Loading branch information
bozana committed Jun 19, 2024
2 parents b95d483 + f7dda45 commit 86abeec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/submission/Submission.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function getTotalGalleyViews()
foreach ($publications as $publication) {
foreach ($publication->getData('galleys') as $galley) {
$file = $galley->getFile();
if (!$galley->getData('urlRemote') && $file) {
if (!$galley->getData('urlRemote') && $file && !in_array($file->getId(), $fileIds)) {
$fileIds[] = $file->getId();
}
}
Expand Down

0 comments on commit 86abeec

Please sign in to comment.