James Cole 2022-11-06 18:15:53 +01:00
parent d55833cb86
commit 90c9fdaf55
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -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;
}