mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-25 18:30:55 -06:00
Fix #2009
This commit is contained in:
parent
e6ff895eff
commit
cec8210d8b
@ -64,11 +64,12 @@ class RecurrenceUpdateService
|
||||
$recurrence->apply_rules = $data['recurrence']['apply_rules'] ?? $recurrence->apply_rules;
|
||||
$recurrence->active = $data['recurrence']['active'] ?? $recurrence->active;
|
||||
|
||||
|
||||
if (isset($data['recurrence']['repetition_end'])) {
|
||||
if (\in_array($data['recurrence']['repetition_end'], ['forever ', 'until_date'])) {
|
||||
if (\in_array($data['recurrence']['repetition_end'], ['forever', 'until_date'])) {
|
||||
$recurrence->repetitions = 0;
|
||||
}
|
||||
if (\in_array($data['recurrence']['repetition_end'], ['forever ', 'times'])) {
|
||||
if (\in_array($data['recurrence']['repetition_end'], ['forever', 'times'])) {
|
||||
$recurrence->repeat_until = null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user