mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Removed deprecated function.
This commit is contained in:
parent
eeb773fd7b
commit
b23d2a9d95
@ -87,7 +87,10 @@ class LimitController extends BaseController
|
|||||||
*/
|
*/
|
||||||
public function edit(Limit $limit)
|
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');
|
$periods = \Config::get('firefly.periods_to_text');
|
||||||
|
|
||||||
return View::make('limits.edit')->with('limit', $limit)->with('budgets', $budgets)->with(
|
return View::make('limits.edit')->with('limit', $limit)->with('budgets', $budgets)->with(
|
||||||
|
@ -145,7 +145,7 @@ class TransactionController extends BaseController
|
|||||||
$accounts = $toolkit->makeSelectList($accountRepository->getActiveDefault());
|
$accounts = $toolkit->makeSelectList($accountRepository->getActiveDefault());
|
||||||
|
|
||||||
// get budgets as a select list.
|
// get budgets as a select list.
|
||||||
$budgets = $budgetRepository->getAsSelectList();
|
$budgets = $toolkit->makeSelectList($budgetRepository->get());
|
||||||
$budgets[0] = '(no budget)';
|
$budgets[0] = '(no budget)';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user