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
[#66951] Disable Turbo on My Account>Settings form
Alexander Brandon Colesac6cbf2a6e15
diff --git a/app/components/my/locale_component.html.erb b/app/components/my/locale_component.html.erbindex 8c80d0f491d..b11b440df5a 100644--- a/app/components/my/locale_component.html.erb+++ b/app/components/my/locale_component.html.erb@@ -30,7 +30,8 @@ See COPYRIGHT and LICENSE files for more details.<%=settings_primer_form_with(model:,- url: { action: "update_settings" }+ url: { action: "update_settings" },+ data: { turbo: false }) do |f|render My::LocaleForm.new(f)enddiff --git a/spec/features/users/my_spec.rb b/spec/features/users/my_spec.rbindex 5d2c5f8417f..13047d14b9e 100644--- a/spec/features/users/my_spec.rb+++ b/spec/features/users/my_spec.rb@@ -98,6 +98,25 @@ RSpec.describe "my", :js doexpect(page).to have_select "Idioma", selected: "Español"expect(user.language).to eq "es"end++ it "updates user language with change visible on navigating to other settings (regression #66951)" do+ expect(user.language).to eq "en"++ expect(page).to have_select "Language", selected: "English"+ select "Português do brasil", from: "Language"+ click_on "Save"++ expect_and_dismiss_flash type: :success, message: "Conta foi atualizada com sucesso."++ expect(page).to have_select "Idioma", selected: "Português do brasil"++ within "#main-menu" do+ click_on "Configurações de notificação"+ end++ expect(page).to have_heading "Configurações de notificação"+ expect(page).to have_heading "Alertas de data"+ endendend