From 90c9fdaf55390653dd6410151e1710cd4f57f342 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 6 Nov 2022 18:15:53 +0100 Subject: [PATCH] Fix https://github.com/firefly-iii/firefly-iii/issues/6610 --- app/Helpers/Collector/Extensions/AttachmentCollection.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Helpers/Collector/Extensions/AttachmentCollection.php b/app/Helpers/Collector/Extensions/AttachmentCollection.php index 50d1b5738b..e9ce1bbd4a 100644 --- a/app/Helpers/Collector/Extensions/AttachmentCollection.php +++ b/app/Helpers/Collector/Extensions/AttachmentCollection.php @@ -72,6 +72,7 @@ trait AttachmentCollection Log::debug('Add filter on attachment ID.'); $this->joinAttachmentTables(); $this->query->whereNotNull('attachments.attachable_id'); + $this->query->whereNull('attachments.deleted_at'); return $this; }