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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Update the meeting when saving an agenda item
Oliver Günther19d7aea497cd
diff --git a/modules/meeting/app/models/meeting_agenda_item.rb b/modules/meeting/app/models/meeting_agenda_item.rbindex 3f26a4c8221..19faf42caa4 100644--- a/modules/meeting/app/models/meeting_agenda_item.rb+++ b/modules/meeting/app/models/meeting_agenda_item.rb@@ -65,6 +65,7 @@ class MeetingAgendaItem < ApplicationRecordbefore_validation :add_to_latest_meeting_sectionafter_create :trigger_meeting_agenda_item_time_slots_calculation+ after_save :touch_meetingafter_save :trigger_meeting_agenda_item_time_slots_calculation, if: Proc.new { |item|item.duration_in_minutes_previously_changed? || item.position_previously_changed?}@@ -89,6 +90,10 @@ class MeetingAgendaItem < ApplicationRecordmeeting.calculate_agenda_item_time_slotsend+ def touch_meeting+ meeting.touch+ end+# def delete_meeting_section_if_empty# # we need to delete the last existing section if the last meeting agenda item is deleted# # as we don't render the section (including the section menu) if only one section exists