[Bps-public-commit] r15642 - RT-Extension-MergeUsers/lib/RT

ruz at bestpractical.com ruz at bestpractical.com
Fri Aug 29 13:25:04 EDT 2008


Author: ruz
Date: Fri Aug 29 13:25:04 2008
New Revision: 15642

Modified:
   RT-Extension-MergeUsers/lib/RT/User_Vendor.pm

Log:
* don't forget to filter object type when load an attribute

Modified: RT-Extension-MergeUsers/lib/RT/User_Vendor.pm
==============================================================================
--- RT-Extension-MergeUsers/lib/RT/User_Vendor.pm	(original)
+++ RT-Extension-MergeUsers/lib/RT/User_Vendor.pm	Fri Aug 29 13:25:04 2008
@@ -80,7 +80,11 @@
     return $self->id unless $self->id;
 
     my $effective_id = RT::Attribute->new( $RT::SystemUser );
-    $effective_id->LoadByCols(Name => 'EffectiveId', ObjectId => $self->id);
+    $effective_id->LoadByCols(
+        Name => 'EffectiveId',
+        ObjectType => ref($self) || $self,
+        ObjectId => $self->id
+    );
     if ( $effective_id->id && $effective_id->Content && $effective_id->Content != $self->id ) {
         $self->LoadByCols( id => $effective_id->Content );
     }



More information about the Bps-public-commit mailing list