Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Extra validation and a new config variable for #10806
James Colee90d60113bb5
diff --git a/app/Api/V1/Requests/Chart/ChartRequest.php b/app/Api/V1/Requests/Chart/ChartRequest.phpindex 2ef933a1c2..5477aae2e5 100644--- a/app/Api/V1/Requests/Chart/ChartRequest.php+++ b/app/Api/V1/Requests/Chart/ChartRequest.php@@ -64,6 +64,7 @@ class ChartRequest extends FormRequest'end' => 'required|date|after:1970-01-02|before:2038-01-17|after_or_equal:start','preselected' => sprintf('nullable|in:%s', implode(',', config('firefly.preselected_accounts'))),'period' => sprintf('nullable|in:%s', implode(',', config('firefly.valid_view_ranges'))),+ 'accounts' => 'nullable|array','accounts.*' => 'exists:accounts,id',];diff --git a/app/Support/Binder/EitherConfigKey.php b/app/Support/Binder/EitherConfigKey.phpindex e342c6d158..ed41ac53ca 100644--- a/app/Support/Binder/EitherConfigKey.php+++ b/app/Support/Binder/EitherConfigKey.php@@ -52,6 +52,7 @@ class EitherConfigKey'firefly.languages','app.timezone','firefly.valid_view_ranges',+ 'firefly.preselected_accounts',// triggers and actions:'firefly.rule-actions',