mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Add deleted check to attachment filter
This commit is contained in:
parent
fb6706648e
commit
0189b91d3b
@ -92,7 +92,8 @@ trait AttachmentCollection
|
|||||||
->where(
|
->where(
|
||||||
static function (EloquentBuilder $q1) {
|
static function (EloquentBuilder $q1) {
|
||||||
$q1->where('attachments.attachable_type', TransactionJournal::class);
|
$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');
|
$q1->orWhereNull('attachments.attachable_type');
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user