mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix search. [skip-ci]
This commit is contained in:
parent
0fb45974ef
commit
ea378c8d82
@ -106,7 +106,7 @@ class Search implements SearchInterface
|
|||||||
$decrypted = Auth::user()->transactionjournals()->expanded()->where('transaction_journals.encrypted', 0)->where(
|
$decrypted = Auth::user()->transactionjournals()->expanded()->where('transaction_journals.encrypted', 0)->where(
|
||||||
function (EloquentBuilder $q) use ($words) {
|
function (EloquentBuilder $q) use ($words) {
|
||||||
foreach ($words as $word) {
|
foreach ($words as $word) {
|
||||||
$q->orWhere('description', 'LIKE', '%' . e($word) . '%');
|
$q->orWhere('transaction_journals.description', 'LIKE', '%' . e($word) . '%');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)->get(TransactionJournal::QUERYFIELDS);
|
)->get(TransactionJournal::QUERYFIELDS);
|
||||||
|
Loading…
Reference in New Issue
Block a user