Skip to content

Commit

Permalink
pkp#10758 Delete submission files when a galley is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Jan 2, 2025
1 parent 82d5179 commit 17d758f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions classes/galley/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@ public function delete(Galley $galley): void
// Delete related submission files
$submissionFiles = Repo::submissionFile()
->getCollector()
->filterByAssoc(Application::ASSOC_TYPE_GALLEY)
->filterByFileIds([$galley->getId()])
->filterByAssoc(Application::ASSOC_TYPE_GALLEY, [$galley->getId()])
->getMany();

foreach ($submissionFiles as $submissionFile) {
Expand Down

0 comments on commit 17d758f

Please sign in to comment.