Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Merge pull request #17917 from opf/fix/61424/meeting-series-occurrence-earlier

Mir Bhatia9708d5c48e46
diff --cc modules/meeting/app/controllers/recurring_meetings_controller.rb
index 174f38828de,4c966cd5765..5d32f654607
--- a/modules/meeting/app/controllers/recurring_meetings_controller.rb
+++ b/modules/meeting/app/controllers/recurring_meetings_controller.rb
@@@ -230,15 -235,9 +230,15 @@@ class RecurringMeetingsController < App
private
+ def redirect_to_project
+ return if @project
+
+ redirect_to project_recurring_meeting_path(@recurring_meeting.project, @recurring_meeting), status: :see_other
+ end
+
def init_next_occurrence_job(from_time)
# Now we can schedule the job to create the next occurrence
- next_occurrence = @recurring_meeting.next_occurrence(from_time:)&.to_time
+ next_occurrence = @recurring_meeting.next_occurrence(from_time:)
return if next_occurrence.nil?
::RecurringMeetings::InitNextOccurrenceJob