Skip to content

Commit

Permalink
[#60700] Ending series via number of occurrences does not work if the…
Browse files Browse the repository at this point in the history
… ending condition was originally after a specific date (#17690)

* [#60700] Ending series via number of occurrences does not work if the ending condition was originally after a specific date

https://community.openproject.org/work_packages/60700

* Update condition
  • Loading branch information
mrmir authored Jan 22, 2025
1 parent 64cbb94 commit cb13b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/meeting/app/models/recurring_meeting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def next_occurrence(from_time: Time.current)
end

def remaining_occurrences
if end_date.present?
if end_after_specific_date?
schedule.occurrences_between(Time.current, modified_end_date)
else
schedule.remaining_occurrences(Time.current)
Expand Down

0 comments on commit cb13b21

Please sign in to comment.