mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
Should be enough to fix order issues.
This commit is contained in:
@@ -630,6 +630,10 @@ class AccountRepository implements AccountRepositoryInterface
|
|||||||
$list = $this->getAccountsByType($set);
|
$list = $this->getAccountsByType($set);
|
||||||
$index = 1;
|
$index = 1;
|
||||||
foreach ($list as $account) {
|
foreach ($list as $account) {
|
||||||
|
if(false === $account->active) {
|
||||||
|
$account->order = 0;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if ($index !== (int)$account->order) {
|
if ($index !== (int)$account->order) {
|
||||||
Log::debug(sprintf('Account #%d ("%s"): order should %d be but is %d.', $account->id, $account->name, $index, $account->order));
|
Log::debug(sprintf('Account #%d ("%s"): order should %d be but is %d.', $account->id, $account->name, $index, $account->order));
|
||||||
$account->order = $index;
|
$account->order = $index;
|
||||||
|
Reference in New Issue
Block a user