there it is! fix bug with FS::cust_main::agent
authorivan <ivan>
Tue, 16 Apr 2002 23:14:30 +0000 (23:14 +0000)
committerivan <ivan>
Tue, 16 Apr 2002 23:14:30 +0000 (23:14 +0000)
FS/FS/cust_main.pm

index fd1ccd7..66e032b 100644 (file)
@@ -827,7 +827,7 @@ Returns the agent (see L<FS::agent>) for this customer.
 
 sub agent {
   my $self = shift;
-  qsearchs( 'agent', { 'agent' => $self->agentnum } );
+  qsearchs( 'agent', { 'agentnum' => $self->agentnum } );
 }
 
 =item bill OPTIONS