mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-07 02:18:11 +00:00
Moved some of the events so they will properly fire. Noticed the budget controllers are a bit of a mess. Next project.
This commit is contained in:
@@ -86,6 +86,8 @@ class BudgetController extends BaseController
|
||||
$budgets = $this->_repository->get();
|
||||
$today = new Carbon;
|
||||
|
||||
Event::fire('budgets.change');
|
||||
|
||||
return View::make('budgets.indexByBudget')->with('budgets', $budgets)->with('today', $today);
|
||||
|
||||
}
|
||||
@@ -100,6 +102,8 @@ class BudgetController extends BaseController
|
||||
$set = $this->_repository->get();
|
||||
$budgets = $this->_budgets->organizeByDate($set);
|
||||
|
||||
Event::fire('budgets.change');
|
||||
|
||||
return View::make('budgets.indexByDate')->with('budgets', $budgets);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user