From 80880d9aaaf74eae50bdeea6ebabf7dab0723d4e Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 24 Sep 2023 11:54:34 +0000 Subject: [PATCH] Remove set_language_if_valid from MyController (#39066). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch by Pavel Rosický. git-svn-id: https://svn.redmine.org/redmine/trunk@22320 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/my_controller.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index 9eaaa90e7..1d0ca617d 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -55,7 +55,6 @@ class MyController < ApplicationController @user.pref.safe_attributes = params[:pref] if @user.save @user.pref.save - set_language_if_valid @user.language respond_to do |format| format.html do flash[:notice] = l(:notice_account_updated) -- 2.39.5