mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Expand view with several new options. Move cache to api endpoints.
This commit is contained in:
@@ -251,6 +251,7 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
|
||||
// process filters
|
||||
// TODO this should be repeatable, it feels like a hack when you do it here.
|
||||
// TODO some fields cannot be filtered using the query, and a second filter must be applied on the collection.
|
||||
foreach($filters as $column => $value) {
|
||||
// filter on NULL values
|
||||
if(null === $value) {
|
||||
@@ -259,6 +260,9 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
if ('active' === $column) {
|
||||
$query->where('accounts.active', $value);
|
||||
}
|
||||
if('name' === $column) {
|
||||
$query->where('accounts.name', 'LIKE', sprintf('%%%s%%', $value));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user