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 and unify setting of options hash
Oliver Günther3e5866b0333d
diff --git a/modules/auth_saml/app/controllers/saml/providers_controller.rb b/modules/auth_saml/app/controllers/saml/providers_controller.rbindex e3762e79791..0429fe71250 100644--- a/modules/auth_saml/app/controllers/saml/providers_controller.rb+++ b/modules/auth_saml/app/controllers/saml/providers_controller.rb@@ -92,7 +92,7 @@ module Samldef updatecall = Saml::Providers::UpdateService.new(model: @provider, user: User.current)- .call(update_params)+ .call(options: update_params)if call.success?flash[:notice] = I18n.t(:notice_successful_update) unless @edit_modediff --git a/modules/auth_saml/app/services/saml/providers/set_attributes_service.rb b/modules/auth_saml/app/services/saml/providers/set_attributes_service.rbindex e01adf1291d..a70be4d9fc7 100644--- a/modules/auth_saml/app/services/saml/providers/set_attributes_service.rb+++ b/modules/auth_saml/app/services/saml/providers/set_attributes_service.rb@@ -32,7 +32,6 @@ module Samlprivatedef set_attributes(params)- update_mapping(params)update_options(params.delete(:options)) if params.key?(:options)super@@ -50,6 +49,7 @@ module Samlupdate_idp_cert(options.delete(:idp_cert)) if options.key?(:idp_cert)update_certificate(options.delete(:certificate)) if options.key?(:certificate)update_private_key(options.delete(:private_key)) if options.key?(:private_key)+ update_mapping(options)options.select { |key, _| Saml::Provider.stored_attributes[:options].include?(key.to_s) }