Skip to content

Firefly III: a personal finances manager

Fix https://github.com/firefly-iii/firefly-iii/issues/12296

James Cole4475a52f20aa
diff --git a/app/Api/V1/Requests/Models/Recurrence/StoreRequest.php b/app/Api/V1/Requests/Models/Recurrence/StoreRequest.php
index ac4999f843..f0aae18652 100644
--- a/app/Api/V1/Requests/Models/Recurrence/StoreRequest.php
+++ b/app/Api/V1/Requests/Models/Recurrence/StoreRequest.php
@@ -85,7 +85,7 @@ class StoreRequest extends FormRequest
'apply_rules' => [new IsBoolean()],
'active' => [new IsBoolean()],
'repeat_until' => ['nullable', 'date'],
- 'nr_of_repetitions' => ['nullable', 'numeric', 'min:1', 'max:31'],
+ 'nr_of_repetitions' => ['nullable', 'numeric', 'min:1', 'max:255'],
'repetitions.*.type' => ['required', 'in:daily,weekly,ndom,monthly,yearly'],
'repetitions.*.moment' => ['min:0', 'max:10'],
diff --git a/app/Api/V1/Requests/Models/Recurrence/UpdateRequest.php b/app/Api/V1/Requests/Models/Recurrence/UpdateRequest.php
index 7004db0a4d..5bf4ebceba 100644
--- a/app/Api/V1/Requests/Models/Recurrence/UpdateRequest.php
+++ b/app/Api/V1/Requests/Models/Recurrence/UpdateRequest.php
@@ -94,7 +94,7 @@ class UpdateRequest extends FormRequest
'apply_rules' => [new IsBoolean()],
'active' => [new IsBoolean()],
'repeat_until' => ['nullable', 'date'],
- 'nr_of_repetitions' => ['nullable', 'numeric', 'min:1', 'max:31'],
+ 'nr_of_repetitions' => ['nullable', 'numeric', 'min:1', 'max:255'],
'repetitions.*.type' => 'in:daily,weekly,ndom,monthly,yearly',
'repetitions.*.moment' => ['min:0', 'max:10', 'numeric'],