Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix query for attachment icon.
James Cole8c8a2a1596b2
diff --git a/app/Helpers/Collector/GroupCollector.php b/app/Helpers/Collector/GroupCollector.phpindex 2cb8f4b263..410f0a7519 100644--- a/app/Helpers/Collector/GroupCollector.php+++ b/app/Helpers/Collector/GroupCollector.php@@ -961,7 +961,12 @@ class GroupCollector implements GroupCollectorInterface// join some extra tables:$this->hasJoinedAttTables = true;$this->query->leftJoin('attachments', 'attachments.attachable_id', '=', 'transaction_journals.id')- ->where('attachments.attachable_type', TransactionJournal::class);+ ->where(+ static function (EloquentBuilder $q1) {+ $q1->where('attachments.attachable_type', TransactionJournal::class);+ $q1->orWhereNull('attachments.attachable_type');+ }+ );}}