X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fhtml%2FUser%2FPrefs.html;h=68f12b81e887a8167af03ccc6815eedc3702a2e5;hb=c582e92888b4a5553e1b4e5214cf35217e4a0cf0;hp=b89fc40ae5c0f5d152436f64868c9e8ae784d435;hpb=945721f48f74d5cfffef7c7cf3a3d6bc2521f5dd;p=freeside.git
diff --git a/rt/html/User/Prefs.html b/rt/html/User/Prefs.html
index b89fc40ae..68f12b81e 100644
--- a/rt/html/User/Prefs.html
+++ b/rt/html/User/Prefs.html
@@ -38,21 +38,44 @@
<& /Elements/TitleBoxStart, title => loc('Identity') &>
-<&|/l&>Email&>:
-
-<&|/l&>Real Name&>:
-
-<&|/l&>Nickname&>:
+
<& /Elements/TitleBoxEnd &>
<& /Elements/TitleBoxStart, title => loc('Phone numbers') &>
-<&|/l&>Residence&>:
-
-<&|/l&>Work&>:
-
-<&|/l&>Mobile&>:
-
-<&|/l&>Pager&>:
+
<& /Elements/TitleBoxEnd &>
@@ -60,44 +83,58 @@
<& /Elements/TitleBoxStart, title => loc('Password') &>
-% }
<& /Elements/TitleBoxEnd &>
+% }
|
<& /Elements/TitleBoxStart, title => loc('Location') &>
-<&|/l&>Organization&>:
-
-<&|/l&>Address1&>:
-
-<&|/l&>Address2&>:
-
-<&|/l&>City&>:
-
-<&|/l&>State&>:
-
-<&|/l&>Zip&>:
-
-<&|/l&>Country&>:
-
-
-
+
<& /Elements/TitleBoxEnd &>
|
@@ -120,7 +157,7 @@
-<& /Elements/Submit &>
+<& /Elements/Submit, Label => loc('Save Preferences') &>
@@ -147,12 +184,16 @@ if ($UserObj->Id) {
Organization RealName NickName Lang EmailEncoding WebEncoding
ExternalContactInfoId ContactInfoSystem Gecos ExternalAuthId
AuthSystem HomePhone WorkPhone MobilePhone PagerPhone Address1
- Address2 City State Zip Country
+ Address2 City State Zip Country Lang
);
my @fieldresults = UpdateRecordObject ( AttributesRef => \@fields,
Object => $UserObj,
ARGSRef => \%ARGS );
+ if ($Lang) {
+ $session{'CurrentUser'}->LanguageHandle($Lang);
+ $session{'CurrentUser'}= $session{'CurrentUser'}; # Force writeback
+ }
push (@results,@fieldresults);