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

Sort meetings by start_time ASC in work package tab

Oliver Günther9a301071b1a4
diff --git a/modules/meeting/app/forms/meeting_agenda_item/meeting_form.rb b/modules/meeting/app/forms/meeting_agenda_item/meeting_form.rb
index 00df6f6cc32..ff96a46faca 100644
--- a/modules/meeting/app/forms/meeting_agenda_item/meeting_form.rb
+++ b/modules/meeting/app/forms/meeting_agenda_item/meeting_form.rb
@@ -45,6 +45,7 @@ class MeetingAgendaItem::MeetingForm < ApplicationForm
MeetingAgendaItems::CreateContract
.assignable_meetings(User.current)
.where("meetings.start_time + (interval '1 hour' * meetings.duration) >= ?", Time.zone.now)
+ .reorder("meetings.start_time ASC")
.includes(:project)
.find_each do |meeting|
select.option(