[Rt-commit] rt branch, 4.0/refresh-lang-pref-fix, created. rt-4.0.6-126-g27fffe4
? sunnavy
sunnavy at bestpractical.com
Wed May 23 14:22:35 EDT 2012
The branch, 4.0/refresh-lang-pref-fix has been created
at 27fffe498e0d10af697c18081acde475a9e0b738 (commit)
- Log -----------------------------------------------------------------
commit 27fffe498e0d10af697c18081acde475a9e0b738
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu May 24 02:01:24 2012 +0800
update lang preference even if lang is empty(a.k.a system default)
without this fix, page won't be be updated correctly if user switches back to
system default language.
diff --git a/share/html/User/Prefs.html b/share/html/User/Prefs.html
index a42ece5..00c4a3a 100755
--- a/share/html/User/Prefs.html
+++ b/share/html/User/Prefs.html
@@ -238,10 +238,8 @@ else {
push @results, ProcessObjectCustomFieldUpdates( ARGSRef => \%ARGS, Object => $UserObj );
- if ( $Lang ) {
- $session{'CurrentUser'}->LanguageHandle($Lang);
- $session{'CurrentUser'} = $session{'CurrentUser'}; # force writeback
- }
+ $session{'CurrentUser'}->LanguageHandle($Lang);
+ $session{'CurrentUser'} = $session{'CurrentUser'}; # force writeback
# Deal with special fields: Privileged, Enabled, and Password
if ( $SetPrivileged and $Privileged != $UserObj->Privileged ) {
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list