Skip to content

Firefly III: a personal finances manager

Fix search. [skip-ci]

James Coleea378c8d82bf
diff --git a/app/Support/Search/Search.php b/app/Support/Search/Search.php
index ecfeabe1dc..deb68245dd 100644
--- a/app/Support/Search/Search.php
+++ b/app/Support/Search/Search.php
@@ -106,7 +106,7 @@ class Search implements SearchInterface
$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) . '%');
+ $q->orWhere('transaction_journals.description', 'LIKE', '%' . e($word) . '%');
}
}
)->get(TransactionJournal::QUERYFIELDS);