mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-09 23:15:45 -06:00
Fix #917
This commit is contained in:
parent
09118013c9
commit
624b654fa6
@ -332,7 +332,7 @@ class AccountController extends Controller
|
||||
|
||||
// update preferences if necessary:
|
||||
$frontPage = Preferences::get('frontPageAccounts', [])->data;
|
||||
if (count($frontPage) > 0) {
|
||||
if (count($frontPage) > 0 && $account->accountType->type === AccountType::ASSET) {
|
||||
$frontPage[] = $account->id;
|
||||
Preferences::set('frontPageAccounts', $frontPage);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user