Allow edit from budget overview, and allow changing of active setting.

This commit is contained in:
James Cole
2015-03-29 21:27:13 +02:00
parent d4c642741f
commit 210f84b6ea
5 changed files with 20 additions and 1 deletions

View File

@@ -211,6 +211,7 @@ class BudgetController extends Controller
{
$budgetData = [
'name' => $request->input('name'),
'active' => intval($request->input('active')) == 1
];
$repository->update($budget, $budgetData);