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 after_create hook already covered by after_save

ulfertsa42dbaed5f75
diff --git a/modules/meeting/app/models/meeting_agenda_item.rb b/modules/meeting/app/models/meeting_agenda_item.rb
index 72f79a07cc0..0c8e602fff6 100644
--- a/modules/meeting/app/models/meeting_agenda_item.rb
+++ b/modules/meeting/app/models/meeting_agenda_item.rb
@@ -67,7 +67,6 @@ class MeetingAgendaItem < ApplicationRecord
allow_nil: true
before_validation :add_to_latest_meeting_section
- after_create :trigger_meeting_agenda_item_time_slots_calculation
after_save :trigger_meeting_agenda_item_time_slots_calculation, if: Proc.new { |item|
item.duration_in_minutes_previously_changed? || item.position_previously_changed?
}