From d06d3a91bfd98455b37c3af53053860479ed788c Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Thu, 24 Jul 2025 18:52:56 +0200 Subject: [PATCH] Ensure correct checking of legale radio button --- app/controllers/accounts/terms_controller.rb | 2 ++ app/views/accounts/terms/show.html.erb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/accounts/terms_controller.rb b/app/controllers/accounts/terms_controller.rb index de8b8dbe7..88bdbb965 100644 --- a/app/controllers/accounts/terms_controller.rb +++ b/app/controllers/accounts/terms_controller.rb @@ -13,6 +13,8 @@ module Accounts def show @legale = params[:legale] || OSM.ip_to_country(request.remote_ip) || Settings.default_legale @text = OSM.legal_text_for_country(@legale) + @text_legale = @legale + @text_legale = "GB" unless @legale == "FR" || @legale == "IT" if request.xhr? render :partial => "terms" diff --git a/app/views/accounts/terms/show.html.erb b/app/views/accounts/terms/show.html.erb index c1c0e0a89..fd0573540 100644 --- a/app/views/accounts/terms/show.html.erb +++ b/app/views/accounts/terms/show.html.erb @@ -22,7 +22,7 @@