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

[#57388] fix: don't break without 'save export settings' checkbox

Tobias Dillmann8be005793ea3
diff --git a/app/controllers/work_packages_controller.rb b/app/controllers/work_packages_controller.rb
index a8074869c3c..3e409c8ff65 100644
--- a/app/controllers/work_packages_controller.rb
+++ b/app/controllers/work_packages_controller.rb
@@ -135,7 +135,7 @@ class WorkPackagesController < ApplicationController
end
def export_list(mime_type)
- save_export_settings if params[:save_export_settings].to_bool
+ save_export_settings if params[:save_export_settings]&.to_bool
job_id = WorkPackages::Exports::ScheduleService
.new(user: current_user)