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
Updated by Go MAEDA over 1 year ago
- Target version set to 5.1.0
Setting the target version to 5.1.0.
Updated by Go MAEDA about 1 year ago
- Status changed from New to Closed
- Assignee set to Go MAEDA
Committed the patch. Thank you.
Actions