mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00:00
Remove set_language_if_valid from MyController (#39066).
Patch by Pavel Rosický. git-svn-id: https://svn.redmine.org/redmine/trunk@22320 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
edb84cf2b2
commit
80880d9aaa
@ -55,7 +55,6 @@ class MyController < ApplicationController
|
|||||||
@user.pref.safe_attributes = params[:pref]
|
@user.pref.safe_attributes = params[:pref]
|
||||||
if @user.save
|
if @user.save
|
||||||
@user.pref.save
|
@user.pref.save
|
||||||
set_language_if_valid @user.language
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html do
|
format.html do
|
||||||
flash[:notice] = l(:notice_account_updated)
|
flash[:notice] = l(:notice_account_updated)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user