mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-22 08:56:39 -06:00
Fix issues related to #3111
This commit is contained in:
parent
2a38c9b4ef
commit
8d806e6a1d
@ -85,6 +85,7 @@ class GracefulNotFoundHandler extends ExceptionHandler
|
||||
return redirect(route('currencies.index'));
|
||||
break;
|
||||
case 'budgets.show':
|
||||
case 'budgets.edit':
|
||||
$request->session()->reflash();
|
||||
|
||||
return redirect(route('budgets.index'));
|
||||
|
@ -60,5 +60,8 @@ class BudgetDestroyService
|
||||
|
||||
// also delete all relations between categories and transactions:
|
||||
DB::table('budget_transaction')->where('budget_id', (int)$budget->id)->delete();
|
||||
|
||||
// also delete all budget limits
|
||||
$budget->budgetlimits()->delete();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user