Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix search.
James Cole6490f9c12855
diff --git a/app/Support/Search/Search.php b/app/Support/Search/Search.phpindex 3a85e69577..ecfeabe1dc 100644--- a/app/Support/Search/Search.php+++ b/app/Support/Search/Search.php@@ -103,7 +103,7 @@ class Search implements SearchInterfacepublic function searchTransactions(array $words): Collection{// decrypted transaction journals:- $decrypted = Auth::user()->transactionjournals()->expanded()->where('encrypted', 0)->where(+ $decrypted = Auth::user()->transactionjournals()->expanded()->where('transaction_journals.encrypted', 0)->where(function (EloquentBuilder $q) use ($words) {foreach ($words as $word) {$q->orWhere('description', 'LIKE', '%' . e($word) . '%');@@ -112,7 +112,7 @@ class Search implements SearchInterface)->get(TransactionJournal::QUERYFIELDS);// encrypted- $all = Auth::user()->transactionjournals()->expanded()->where('encrypted', 1)->get(TransactionJournal::QUERYFIELDS);+ $all = Auth::user()->transactionjournals()->expanded()->where('transaction_journals.encrypted', 1)->get(TransactionJournal::QUERYFIELDS);$set = $all->filter(function (TransactionJournal $journal) use ($words) {foreach ($words as $word) {