mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 09:51:40 +00:00
MySQL 5.7 compatible query fixing. [skip ci]
This commit is contained in:
@@ -259,6 +259,7 @@ class BudgetRepository implements BudgetRepositoryInterface
|
|||||||
$join->on('source.transaction_journal_id', '=', 'transaction_journals.id')->where('source.amount', '<', '0');
|
$join->on('source.transaction_journal_id', '=', 'transaction_journals.id')->where('source.amount', '<', '0');
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
->groupBy(['source.account_id'])
|
||||||
->whereIn('budget_transaction.budget_id', $budgets->pluck('id')->toArray());
|
->whereIn('budget_transaction.budget_id', $budgets->pluck('id')->toArray());
|
||||||
|
|
||||||
if (count($accountIds) > 0) {
|
if (count($accountIds) > 0) {
|
||||||
@@ -325,6 +326,7 @@ class BudgetRepository implements BudgetRepositoryInterface
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user