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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
fix saving work package general settings
ulferts55acf2527789
diff --git a/app/controllers/admin/settings_controller.rb b/app/controllers/admin/settings_controller.rbindex 9c47ad35546..f64597708c8 100644--- a/app/controllers/admin/settings_controller.rb+++ b/app/controllers/admin/settings_controller.rb@@ -52,15 +52,15 @@ module Adminenddef update- if params[:settings]- call = ::Settings::UpdateService- .new(user: current_user)- .call(settings_params)-- call.on_success { flash[:notice] = t(:notice_successful_update) }- call.on_failure { flash[:error] = call.message || I18n.t(:notice_internal_server_error) }- redirect_to action: 'show', tab: params[:tab]- end+ return unless params[:settings]++ call = ::Settings::UpdateService+ .new(user: current_user)+ .call(settings_params)++ call.on_success { flash[:notice] = t(:notice_successful_update) }+ call.on_failure { flash[:error] = call.message || I18n.t(:notice_internal_server_error) }+ redirect_to action: 'show', tab: params[:tab]enddef show_plugindiff --git a/app/views/admin/settings/work_packages_settings/show.html.erb b/app/views/admin/settings/work_packages_settings/show.html.erbindex bb7cc1e07bb..ed10661bfb9 100644--- a/app/views/admin/settings/work_packages_settings/show.html.erb+++ b/app/views/admin/settings/work_packages_settings/show.html.erb@@ -31,7 +31,7 @@ See docs/COPYRIGHT.rdoc for more details.<%= toolbar title: t(:label_work_package_tracking) %>-<%= styled_form_tag({action: :update}) do %>+<%= styled_form_tag({action: :update}, method: :patch) do %><section class="form--section"><div class="form--field"><%= setting_check_box :cross_project_work_package_relations %></div><div class="form--field"><%= setting_check_box :display_subprojects_work_packages %></div>