Fix for level 2

This commit is contained in:
James Cole
2025-01-03 19:07:29 +01:00
parent 3898c0c0ef
commit 6cd60951ba
16 changed files with 41 additions and 15 deletions

View File

@@ -285,6 +285,7 @@ class BudgetLimitRepository implements BudgetLimitRepositoryInterface
$currency->save();
// find the budget:
/** @var Budget|null $budget */
$budget = $this->user->budgets()->find((int) $data['budget_id']);
if (null === $budget) {
throw new FireflyException('200004: Budget does not exist.');