Removed deprecated function.

This commit is contained in:
James Cole 2014-09-23 22:00:11 +02:00
parent eeb773fd7b
commit b23d2a9d95
2 changed files with 5 additions and 2 deletions

View File

@ -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(

View File

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