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
Redirect user to show view after creating SAML provider
Jan Sandbrink4f351a56cc7e
diff --git a/modules/auth_saml/app/controllers/saml/providers_controller.rb b/modules/auth_saml/app/controllers/saml/providers_controller.rbindex de4ce849f67..c4ffaa36093 100644--- a/modules/auth_saml/app/controllers/saml/providers_controller.rb+++ b/modules/auth_saml/app/controllers/saml/providers_controller.rb@@ -32,17 +32,7 @@ module Samlendend- def show- respond_to do |format|- format.turbo_stream do- component = Saml::Providers::ViewComponent.new(@provider,- view_mode: :show)- update_via_turbo_stream(component:)- render turbo_stream: turbo_streams- end- format.html- end- end+ def show; enddef new@provider = ::Saml::Provider.new@@ -117,6 +107,11 @@ module Samlprivatedef successful_save_response+ if @new_mode && !@next_edit_state+ flash[:notice] = I18n.t("saml.providers.notice_created")+ return redirect_to saml_provider_path(@provider)+ end+respond_to do |format|format.turbo_stream doupdate_via_turbo_stream(@@ -130,7 +125,7 @@ module Samlrender turbo_stream: turbo_streamsendformat.html do- if @new_mode && @next_edit_state+ if @next_edit_stateredirect_to edit_saml_provider_path(@provider,anchor: "saml-providers-edit-form",new_mode: @new_mode,