[Rt-commit] [svn] r1624 - in rt/branches/3.2-SYBASE-TESTING: . lib/RT

jesse at pallas.eruditorum.org jesse at pallas.eruditorum.org
Mon Oct 4 16:02:43 EDT 2004


Author: jesse
Date: Mon Oct  4 16:02:42 2004
New Revision: 1624

Modified:
   rt/branches/3.2-SYBASE-TESTING/   (props changed)
   rt/branches/3.2-SYBASE-TESTING/lib/RT/Attributes_Overlay.pm
Log:
 r10348 at tinbook:  jesse | 2004-09-23T07:47:28.427520Z
  r10262 at Jesse-Vincents-Computer:  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.2-SYBASE-TESTING/lib/RT/Attributes_Overlay.pm
==============================================================================
--- rt/branches/3.2-SYBASE-TESTING/lib/RT/Attributes_Overlay.pm	(original)
+++ rt/branches/3.2-SYBASE-TESTING/lib/RT/Attributes_Overlay.pm	Mon Oct  4 16:02:42 2004
@@ -199,7 +199,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