mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-14 05:38:28 +00:00
Started work for piggy banks [skip ci]
This commit is contained in:
@@ -33,9 +33,9 @@ class LimitController extends BaseController
|
||||
{
|
||||
$periods = \Config::get('firefly.periods_to_text');
|
||||
$prefilled = [
|
||||
'startdate' => Input::get('startdate') ? : date('Y-m-d'),
|
||||
'startdate' => Input::get('startdate') ? : date('Y-m-d'),
|
||||
'repeat_freq' => Input::get('repeat_freq') ? : 'monthly',
|
||||
'budget_id' => $budget ? $budget->id : null
|
||||
'budget_id' => $budget ? $budget->id : null
|
||||
];
|
||||
|
||||
$budgets = $this->_budgets->getAsSelectList();
|
||||
@@ -55,13 +55,14 @@ class LimitController extends BaseController
|
||||
$limit = $this->_limits->find($limitId);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if ($limit) {
|
||||
$limit->delete();
|
||||
|
||||
return Redirect::route('budgets.index');
|
||||
if (Input::get('from') == 'date') {
|
||||
return Redirect::route('budgets.index');
|
||||
} else {
|
||||
return Redirect::route('budgets.index.budget');
|
||||
}
|
||||
} else {
|
||||
return View::make('error')->with('message', 'No such limit!');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user