Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
User unable to store budgets without auto budget info.
James Cole8b87204f10c1
diff --git a/app/Http/Requests/BudgetFormStoreRequest.php b/app/Http/Requests/BudgetFormStoreRequest.phpindex 330c000632..9565726f72 100644--- a/app/Http/Requests/BudgetFormStoreRequest.php+++ b/app/Http/Requests/BudgetFormStoreRequest.php@@ -68,7 +68,7 @@ class BudgetFormStoreRequest extends Request'name' => 'required|between:1,100|uniqueObjectForUser:budgets,name','active' => 'numeric|between:0,1','auto_budget_type' => 'numeric|between:0,2',- 'auto_budget_currency_id' => 'required|exists:transaction_currencies,id',+ 'auto_budget_currency_id' => 'exists:transaction_currencies,id','auto_budget_amount' => 'min:0|max:1000000000','auto_budget_period' => 'in:daily,weekly,monthly,quarterly,half_year,yearly',];diff --git a/app/Http/Requests/BudgetFormUpdateRequest.php b/app/Http/Requests/BudgetFormUpdateRequest.phpindex 02ce9bebd4..13b7defcf9 100644--- a/app/Http/Requests/BudgetFormUpdateRequest.php+++ b/app/Http/Requests/BudgetFormUpdateRequest.php@@ -78,7 +78,7 @@ class BudgetFormUpdateRequest extends Request'name' => $nameRule,'active' => 'numeric|between:0,1','auto_budget_option' => 'numeric|between:0,2',- 'auto_budget_currency_id' => 'required|exists:transaction_currencies,id',+ 'auto_budget_currency_id' => 'exists:transaction_currencies,id','auto_budget_amount' => 'min:0|max:1000000000','auto_budget_period' => 'in:daily,weekly,monthly,quarterly,half_year,yearly',];