Fixed a bug where editing an expense account wasn't actually possible.

This commit is contained in:
James Cole 2014-11-27 15:35:51 +01:00
parent 1f7c98bdcf
commit 0f32f6be4c

View File

@ -239,8 +239,7 @@ class AccountController extends BaseController
}
// get a paginated view of all transactions for this account:
/** @var \FireflyIII\Database\Account $acct */
$acct = App::make('FireflyIII\Database\Account');
Cannot handle account type
$journals = $acct->getTransactionJournals($account, 10);
@ -319,6 +318,7 @@ class AccountController extends BaseController
case 'Default account':
$data['what'] = 'asset';
break;
case 'Expense account':
case 'Beneficiary account':
$data['what'] = 'expense';
break;