Actions
Patch #39066
closedRemove set_language_if_valid from MyController
Description
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)
the language is reset after the next redirect, so this is basically a dead code that could be removed
Actions