Skip to content

Firefly III: a personal finances manager

Removed deprecated function.

James Coleb23d2a9d9588
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)';
/*