Skip to content

Firefly III: a personal finances manager

Add deleted check to attachment filter

James Cole0189b91d3bfe
diff --git a/app/Helpers/Collector/Extensions/AttachmentCollection.php b/app/Helpers/Collector/Extensions/AttachmentCollection.php
index 86386947f8..b755cb0f91 100644
--- a/app/Helpers/Collector/Extensions/AttachmentCollection.php
+++ b/app/Helpers/Collector/Extensions/AttachmentCollection.php
@@ -92,7 +92,8 @@ trait AttachmentCollection
->where(
static function (EloquentBuilder $q1) {
$q1->where('attachments.attachable_type', TransactionJournal::class);
- //$q1->where('attachments.uploaded', true);
+ $q1->where('attachments.uploaded', true);
+ $q1->whereNull('attachments.deleted_at');
$q1->orWhereNull('attachments.attachable_type');
}
);