Skip to content
Snippets Groups Projects
Commit 8050a3f0 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

if the visibility of an account is switched to "hidden" and it was selected...

if the visibility of an account is switched to "hidden" and it was selected before the selected account needs to be changed
parent 5a356c2f
No related branches found
No related tags found
No related merge requests found
......@@ -190,6 +190,12 @@ public class AccountController extends BaseController
Account newDefaultAccount = activatedAccounts.get(0);
accountService.setAsDefaultAccount(newDefaultAccount.getID());
}
if(existingAccount.isSelected() && existingAccount.getAccountState() == AccountState.HIDDEN)
{
// select "all accounts" as selected account
accountService.selectAccount(accountService.getRepository().findAllByType(AccountType.ALL).get(0).getID());
}
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment