From b23d2a9d9588e7e1d810a0b19a7d9bf09599f12d Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 23 Sep 2014 22:00:11 +0200 Subject: [PATCH] Removed deprecated function. --- app/controllers/LimitController.php | 5 ++++- app/controllers/TransactionController.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/controllers/LimitController.php b/app/controllers/LimitController.php index 824207fdfa..a553874f1c 100644 --- a/app/controllers/LimitController.php +++ b/app/controllers/LimitController.php @@ -87,7 +87,10 @@ class LimitController extends BaseController */ public function edit(Limit $limit) { - $budgets = $this->_budgets->getAsSelectList(); + /** @var \Firefly\Helper\Toolkit\Toolkit $toolkit */ + $toolkit = App::make('Firefly\Helper\Toolkit\Toolkit'); + + $budgets = $toolkit->makeSelectList($this->_budgets->get()); $periods = \Config::get('firefly.periods_to_text'); return View::make('limits.edit')->with('limit', $limit)->with('budgets', $budgets)->with( diff --git a/app/controllers/TransactionController.php b/app/controllers/TransactionController.php index 15cc3c3f30..e3860f2c73 100644 --- a/app/controllers/TransactionController.php +++ b/app/controllers/TransactionController.php @@ -145,7 +145,7 @@ class TransactionController extends BaseController $accounts = $toolkit->makeSelectList($accountRepository->getActiveDefault()); // get budgets as a select list. - $budgets = $budgetRepository->getAsSelectList(); + $budgets = $toolkit->makeSelectList($budgetRepository->get()); $budgets[0] = '(no budget)'; /*