mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Should be enough to fix order issues.
This commit is contained in:
parent
436bef01da
commit
922050a79b
@ -630,6 +630,10 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
$list = $this->getAccountsByType($set);
|
||||
$index = 1;
|
||||
foreach ($list as $account) {
|
||||
if(false === $account->active) {
|
||||
$account->order = 0;
|
||||
continue;
|
||||
}
|
||||
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));
|
||||
$account->order = $index;
|
||||
|
Loading…
Reference in New Issue
Block a user