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

cleanup

Jonas Jabari6c7a0849b287
diff --git a/modules/calendar/app/controllers/calendar/ical_controller.rb b/modules/calendar/app/controllers/calendar/ical_controller.rb
index 14274608962..4a3ef20450d 100644
--- a/modules/calendar/app/controllers/calendar/ical_controller.rb
+++ b/modules/calendar/app/controllers/calendar/ical_controller.rb
@@ -41,12 +41,8 @@ module ::Calendar
end
if call.present? && call.success?
- # # respond_to do |format|
- # # format.ics do
- send_data call.result, filename: "openproject_calendar_#{DateTime.now.to_i}.ics"
- # # end
- # # end
- # render plain: call.result#, mime_type: Mime::Type.lookup("text/calendar")
+ send_data call.result, filename: "openproject_calendar_#{DateTime.now.to_i}.ics"
+ # render plain: call.result # TODO: remove this, it's just handy for development debugging
else
render_404
end