[Rt-commit] [svn] r1486 - in rt/branches/3.2-RELEASE: . lib/RT
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Tue Sep 14 02:12:09 EDT 2004
Author: jesse
Date: Tue Sep 14 02:12:08 2004
New Revision: 1486
Modified:
rt/branches/3.2-RELEASE/ (props changed)
rt/branches/3.2-RELEASE/lib/RT/Attributes_Overlay.pm
Log:
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.2-RELEASE/lib/RT/Attributes_Overlay.pm
==============================================================================
--- rt/branches/3.2-RELEASE/lib/RT/Attributes_Overlay.pm (original)
+++ rt/branches/3.2-RELEASE/lib/RT/Attributes_Overlay.pm Tue Sep 14 02:12:08 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