[freeside-commits] freeside/httemplate/pref pref-process.html, 1.19, 1.20
Mark Wells
mark at wavetail.420.am
Wed Jun 29 12:36:36 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/pref
In directory wavetail.420.am:/tmp/cvs-serv4094/httemplate/pref
Modified Files:
pref-process.html
Log Message:
sync locale settings with RT, #13073
Index: pref-process.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/pref/pref-process.html,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -w -d -r1.19 -r1.20
--- pref-process.html 19 May 2011 23:25:37 -0000 1.19
+++ pref-process.html 29 Jun 2011 19:36:34 -0000 1.20
@@ -73,4 +73,14 @@
}
+if ( !$error and ($FS::TicketSystem::system || '') eq 'RT_Internal' ) {
+ # sync RT user locale on every update
+ my $locale = $access_user->option('locale');
+ FS::TicketSystem->init;
+ my $UserObj = FS::TicketSystem->session('')->{'CurrentUser'}->UserObj;
+ # Bypass RT ModifySelf ACL
+ $UserObj->CurrentUser( RT::SystemUser );
+ my ($val, $msg) = $UserObj->SetLang($locale);
+ $error = $msg if !$val;
+}
</%init>
More information about the freeside-commits
mailing list