mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-26 13:36:15 +00:00
This commit is contained in:
@@ -203,12 +203,13 @@ trait RecurrenceValidation
|
||||
*/
|
||||
foreach ($repetitions as $index => $repetition) {
|
||||
if (!array_key_exists('moment', $repetition)) {
|
||||
continue;
|
||||
$repetition['moment'] = '';
|
||||
}
|
||||
if (null === $repetition['moment']) {
|
||||
$repetition['moment'] = '';
|
||||
}
|
||||
$repetition['moment'] = $repetition['moment'] ?? 'invalid';
|
||||
|
||||
switch ($repetition['type'] ?? 'empty') {
|
||||
default:
|
||||
$validator->errors()->add(sprintf('repetitions.%d.type', $index), (string)trans('validation.valid_recurrence_rep_type'));
|
||||
|
||||
Reference in New Issue
Block a user