Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix https://github.com/firefly-iii/firefly-iii/issues/9497
James Cole9679c22a27fb
diff --git a/app/Handlers/Events/Model/BudgetLimitHandler.php b/app/Handlers/Events/Model/BudgetLimitHandler.phpindex bf77152558..71fd12ac60 100644--- a/app/Handlers/Events/Model/BudgetLimitHandler.php+++ b/app/Handlers/Events/Model/BudgetLimitHandler.php@@ -75,6 +75,7 @@ class BudgetLimitHandlerreturn;}+// based on the view range of the user (month week quarter etc) the budget limit could// either overlap multiple available budget periods or be contained in a single one.// all have to be created or updated.@@ -131,8 +132,8 @@ class BudgetLimitHandlerapp('log')->debug(sprintf('Will create AB for period %s to %s', $current->format('Y-m-d'), $currentEnd->format('Y-m-d')));$availableBudget = new AvailableBudget([- 'user_id' => $budgetLimit->budget->user->id,- 'user_group_id' => $budgetLimit->budget->user->user_group_id,+ 'user_id' => $user->id,+ 'user_group_id' => $user->user_group_id,'transaction_currency_id' => $budgetLimit->transaction_currency_id,'start_date' => $current,'start_date_tz' => $current->format('e'),