[rt-devel] RT-3.0.9 overview.

Autrijus Tang autrijus at autrijus.org
Mon Mar 15 10:04:46 EST 2004


On Mon, Mar 15, 2004 at 10:27:07PM +0800, Autrijus Tang wrote:
> On Mon, Mar 15, 2004 at 05:21:39PM +0300, Ruslan U. Zakirov wrote:
> > 3) Complains:
> > 	User can't change UI language with logout/login.
> 
> I see that too.  Used to work with me, so this is an annoyance.
> 
> I'll check what's going on now.

The following patch in User/Prefs.html fixes that.

Thanks,
/Autrijus/

Index: Prefs.html
==================================================================
--- Prefs.html  (revision 3594)
+++ Prefs.html  (local)
@@ -190,7 +190,10 @@
     my @fieldresults = UpdateRecordObject ( AttributesRef => \@fields,
                                            Object => $UserObj,
                                            ARGSRef => \%ARGS );
-    $session{'CurrentUser'}->LanguageHandle($Lang) if $Lang;
+    if ($Lang) {
+       $session{'CurrentUser'}->LanguageHandle($Lang);
+       $session{'CurrentUser'} = $session{'CurrentUser'}; # force writeback
+    }
     push (@results, at fieldresults);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://pallas.eruditorum.org/pipermail/rt-devel/attachments/20040315/89c061a0/attachment.pgp


More information about the Rt-devel mailing list