Skip to content

Firefly III: a personal finances manager

Should be enough to fix order issues.

James Cole922050a79bb7
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;