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
Don't walk through sections without edit_mode
Oliver Günther77b8da473059
diff --git a/modules/openid_connect/app/components/openid_connect/providers/sections/form_component.rb b/modules/openid_connect/app/components/openid_connect/providers/sections/form_component.rbindex 28ac2a6880a..99a83b3788a 100644--- a/modules/openid_connect/app/components/openid_connect/providers/sections/form_component.rb+++ b/modules/openid_connect/app/components/openid_connect/providers/sections/form_component.rb@@ -53,9 +53,17 @@ module OpenIDConnect::Providers::Sectionsdef urlif provider.new_record?- openid_connect_providers_path(edit_state:, edit_mode:, next_edit_state:)+ openid_connect_providers_path(**form_url_params)else- openid_connect_provider_path(edit_state:, edit_mode:, next_edit_state:, id: provider.id)+ openid_connect_provider_path(provider, **form_url_params)+ end+ end++ def form_url_params+ if edit_mode+ { edit_state:, edit_mode:, next_edit_state: }+ else+ { edit_state: }endenddiff --git a/modules/openid_connect/app/components/openid_connect/providers/sections/metadata_form_component.html.erb b/modules/openid_connect/app/components/openid_connect/providers/sections/metadata_form_component.html.erbindex efe3f6dd771..c1d86a4b6b5 100644--- a/modules/openid_connect/app/components/openid_connect/providers/sections/metadata_form_component.html.erb+++ b/modules/openid_connect/app/components/openid_connect/providers/sections/metadata_form_component.html.erb@@ -2,7 +2,7 @@primer_form_with(model: provider,id: "openid-connect-providers-edit-form",- url: openid_connect_provider_path(provider, edit_mode:, next_edit_state: :metadata_details),+ url:,data: {controller: "show-when-value-selected",turbo: true,