From 0f32f6be4c5f403c6923c678abfb4d533f9e64b2 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 27 Nov 2014 15:35:51 +0100 Subject: [PATCH] Fixed a bug where editing an expense account wasn't actually possible. --- app/controllers/AccountController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php index 9cbc4d7f8a..49f739a5c1 100644 --- a/app/controllers/AccountController.php +++ b/app/controllers/AccountController.php @@ -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;