mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-18 20:38:57 +00:00
Delete routine [skip ci]
This commit is contained in:
@@ -46,7 +46,7 @@ class BudgetController extends BaseController
|
||||
}
|
||||
krsort($reps);
|
||||
|
||||
return View::make('budgets.index')->with('group', $group)->with('reps',$reps);
|
||||
return View::make('budgets.index')->with('group', $group)->with('reps', $reps);
|
||||
|
||||
|
||||
break;
|
||||
@@ -133,4 +133,5 @@ class BudgetController extends BaseController
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -46,4 +46,30 @@ class LimitController extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
public function delete($limitId)
|
||||
{
|
||||
$limit = $this->_limits->find($limitId);
|
||||
|
||||
|
||||
if ($limit) {
|
||||
return View::make('limits.delete')->with('limit', $limit);
|
||||
} else {
|
||||
return View::make('error')->with('message', 'No such limit!');
|
||||
}
|
||||
}
|
||||
|
||||
public function destroy($limitId)
|
||||
{
|
||||
$limit = $this->_limits->find($limitId);
|
||||
|
||||
|
||||
if ($limit) {
|
||||
$limit->delete();
|
||||
return Redirect::route('budgets.index');
|
||||
} else {
|
||||
return View::make('error')->with('message', 'No such limit!');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user