fix error on advanced broadband report when selecting a router, RT#14626
authorivan <ivan>
Tue, 25 Oct 2011 00:19:05 +0000 (00:19 +0000)
committerivan <ivan>
Tue, 25 Oct 2011 00:19:05 +0000 (00:19 +0000)
FS/FS/svc_acct.pm
FS/FS/svc_broadband.pm

index 7ef8ed3..37c55d6 100644 (file)
@@ -2933,7 +2933,7 @@ sub search {
 
   #agentnum
   if ( $params->{'agentnum'} =~ /^(\d+)$/ and $1 ) {
-    push @where, "agentnum = $1";
+    push @where, "cust_main.agentnum = $1";
   }
 
   #custnum
index f1a233b..576684c 100755 (executable)
@@ -168,7 +168,7 @@ sub search {
   
   #agentnum
   if ( $params->{'agentnum'} =~ /^(\d+)$/ and $1 ) {
-    push @where, "agentnum = $1";
+    push @where, "cust_main.agentnum = $1";
   }
   push @where, $FS::CurrentUser::CurrentUser->agentnums_sql(
     'null_right' => 'View/link unlinked services',