[Rt-commit] r14712 - in rt/3.8/trunk: .

falcone at bestpractical.com falcone at bestpractical.com
Fri Aug 1 13:04:28 EDT 2008


Author: falcone
Date: Fri Aug  1 13:04:28 2008
New Revision: 14712

Modified:
   rt/3.8/trunk/   (props changed)
   rt/3.8/trunk/lib/RT/CurrentUser.pm

Log:
 r36609 at ketch:  falcone | 2008-08-01 13:03:25 -0400
 * we call loc() without real CurrentUsers (no id) which
   causes this code to fail when running the shredder
   tests or running make initdb


Modified: rt/3.8/trunk/lib/RT/CurrentUser.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/CurrentUser.pm	(original)
+++ rt/3.8/trunk/lib/RT/CurrentUser.pm	Fri Aug  1 13:04:28 2008
@@ -219,7 +219,7 @@
         if ( my $lang = $self->Lang ) {
             push @_, $lang;
         }
-        elsif ( $self->id == $RT::SystemUser->id || $self->id == $RT::Nobody->id ) {
+        elsif ( !$self->id || $self->id == $RT::SystemUser->id || $self->id == $RT::Nobody->id ) {
             # don't use ENV magic for system users
             push @_, 'en';
         }


More information about the Rt-commit mailing list