This commit is contained in:
James Cole 2017-10-09 20:30:46 +02:00
parent 09118013c9
commit 624b654fa6
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -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);
}