fix error on advanced broadband report when selecting a router, RT#14626
[freeside.git] / FS / FS / svc_broadband.pm
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',