mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-25 02:10:22 -06:00
Fix for #2562
This commit is contained in:
parent
4e6bc035ed
commit
a2ddd0420a
@ -466,12 +466,12 @@ class TagRepository implements TagRepositoryInterface
|
||||
->leftJoin('transaction_journals', 'tag_transaction_journal.transaction_journal_id', '=', 'transaction_journals.id')
|
||||
->leftJoin('transactions', 'transaction_journals.id', '=', 'transactions.transaction_journal_id')
|
||||
->where(
|
||||
function (Builder $query) {
|
||||
static function (Builder $query) {
|
||||
$query->where('transactions.amount', '>', 0);
|
||||
$query->orWhereNull('transactions.amount');
|
||||
}
|
||||
)
|
||||
->groupBy(['tags.id', 'tags.tag']);
|
||||
->groupBy(['tags.id', 'tags.tag', 'tags.created_at']);
|
||||
|
||||
// add date range (or not):
|
||||
if (null === $year) {
|
||||
|
Loading…
Reference in New Issue
Block a user