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

Update meeting_mailer.rb

slauffer01a2af5b6d9e
diff --git a/modules/meeting/app/mailers/meeting_mailer.rb b/modules/meeting/app/mailers/meeting_mailer.rb
index 52a283b872a..5b94a6f802b 100644
--- a/modules/meeting/app/mailers/meeting_mailer.rb
+++ b/modules/meeting/app/mailers/meeting_mailer.rb
@@ -77,7 +77,10 @@ class MeetingMailer < UserMailer
e.uid = "#{@meeting.id}@#{@meeting.project.identifier}"
e.organizer = author
end
-
+
+ # add needed 'METHOD:PUBLISH' to ics file
+ entry.publish
+
attachments['meeting.ics'] = entry.to_ical
mail(to: user.mail, subject: subject)
end