Skip to content

Firefly III: a personal finances manager

Fixes bug #338

James Coled8586c80439b
diff --git a/app/Rules/Actions/SetBudget.php b/app/Rules/Actions/SetBudget.php
index 106b9fe706..e85a8da1c4 100644
--- a/app/Rules/Actions/SetBudget.php
+++ b/app/Rules/Actions/SetBudget.php
@@ -48,7 +48,7 @@ class SetBudget implements ActionInterface
public function act(TransactionJournal $journal): bool
{
/** @var BudgetRepositoryInterface $repository */
- $repository = app(BudgetRepositoryInterface::class);
+ $repository = app(BudgetRepositoryInterface::class, [$journal->user]);
$search = $this->action->action_value;
$budgets = $repository->getActiveBudgets();
$budget = $budgets->filter(