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

sartak at bestpractical.com sartak at bestpractical.com
Thu Apr 30 17:45:41 EDT 2009


Author: sartak
Date: Thu Apr 30 17:45:32 2009
New Revision: 19388

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

Log:
 r82606 at onn:  sartak | 2009-04-30 17:45:12 -0400
 Avoid undef warnings in RT::User_Overlay::_Value


Modified: rt/3.8/trunk/lib/RT/User_Overlay.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/User_Overlay.pm	(original)
+++ rt/3.8/trunk/lib/RT/User_Overlay.pm	Thu Apr 30 17:45:32 2009
@@ -1601,7 +1601,7 @@
 
     #If the user wants to see their own values, let them
     # TODO figure ouyt a better way to deal with this
-   elsif ( $self->CurrentUser->Id == $self->Id ) {
+   elsif ( defined($self->Id) && $self->CurrentUser->Id == $self->Id ) {
         return ( $self->SUPER::_Value($field) );
     }
 


More information about the Rt-commit mailing list