mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 19:53:44 +00:00
Error about not submitting a repetition is given under "repetitions". #2483
This commit is contained in:
@@ -48,7 +48,7 @@ trait RecurrenceValidation
|
|||||||
$repetitions = $data['repetitions'] ?? [];
|
$repetitions = $data['repetitions'] ?? [];
|
||||||
// need at least one transaction
|
// need at least one transaction
|
||||||
if (0 === count($repetitions)) {
|
if (0 === count($repetitions)) {
|
||||||
$validator->errors()->add('description', (string)trans('validation.at_least_one_repetition'));
|
$validator->errors()->add('repetitions', (string)trans('validation.at_least_one_repetition'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user