[Rt-commit] [svn] r1513 - in rt/branches/3.3-TESTING: . lib/RT

jesse at pallas.eruditorum.org jesse at pallas.eruditorum.org
Sun Sep 19 21:01:37 EDT 2004


Author: jesse
Date: Sun Sep 19 21:01:37 2004
New Revision: 1513

Modified:
   rt/branches/3.3-TESTING/   (props changed)
   rt/branches/3.3-TESTING/lib/RT/Attributes_Overlay.pm
Log:
 r10265 at tinbook (orig r1486):  jesse | 2004-09-14T06:12:08.920979Z
  r10262 at tinbook:  jesse | 2004-09-14T06:12:21.353389Z
  Never try to fetch attributes when we don't have an object to fetch attributes on
 


Modified: rt/branches/3.3-TESTING/lib/RT/Attributes_Overlay.pm
==============================================================================
--- rt/branches/3.3-TESTING/lib/RT/Attributes_Overlay.pm	(original)
+++ rt/branches/3.3-TESTING/lib/RT/Attributes_Overlay.pm	Sun Sep 19 21:01:37 2004
@@ -198,7 +198,7 @@
 sub LimitToObject {
     my $self = shift;
     my $obj = shift;
-    unless (defined($obj) && ref($obj) && UNIVERSAL::can($obj, 'id')) {
+    unless (defined($obj) && ref($obj) && UNIVERSAL::can($obj, 'id') && $obj->id) {
     return undef;
     }
     $self->Limit(FIELD => 'ObjectType', OPERATOR=> '=', VALUE => ref($obj), ENTRYAGGREGATOR => 'OR');


More information about the Rt-commit mailing list