restore agent_custid smart search, #17424
authorMark Wells <mark@freeside.biz>
Wed, 18 Apr 2012 01:19:05 +0000 (18:19 -0700)
committerMark Wells <mark@freeside.biz>
Wed, 18 Apr 2012 01:19:05 +0000 (18:19 -0700)
FS/FS/cust_main/Search.pm

index 1e9eee7..31b89cd 100644 (file)
@@ -166,6 +166,12 @@ sub smart_search {
       }
     }
 
+    push @cust_main, qsearch( {
+        'table'     => 'cust_main',
+        'hashref'   => { 'agent_custid' => $num, %options },
+        'extra_sql' => " AND $agentnums_sql", #agent virtualization
+    } );
+
     if ( $conf->exists('address1-search') ) {
       my $len = length($num);
       $num = lc($num);