diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.php index 0e0529f081..60e454d222 100644 --- a/app/Repositories/Account/AccountRepository.php +++ b/app/Repositories/Account/AccountRepository.php @@ -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;