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

Remove the double touch of meeting

Oliver Günther645c165257dd
diff --git a/modules/meeting/app/models/meeting_agenda_item.rb b/modules/meeting/app/models/meeting_agenda_item.rb
index 19faf42caa4..3f26a4c8221 100644
--- a/modules/meeting/app/models/meeting_agenda_item.rb
+++ b/modules/meeting/app/models/meeting_agenda_item.rb
@@ -65,7 +65,6 @@ class MeetingAgendaItem < ApplicationRecord
before_validation :add_to_latest_meeting_section
after_create :trigger_meeting_agenda_item_time_slots_calculation
- after_save :touch_meeting
after_save :trigger_meeting_agenda_item_time_slots_calculation, if: Proc.new { |item|
item.duration_in_minutes_previously_changed? || item.position_previously_changed?
}
@@ -90,10 +89,6 @@ class MeetingAgendaItem < ApplicationRecord
meeting.calculate_agenda_item_time_slots
end
- 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