summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-04-17 18:19:05 -0700
committerMark Wells <mark@freeside.biz>2012-04-17 18:19:05 -0700
commit3ce70fff14b951189273348f4ddd06aa1069eafc (patch)
treeebde48b20b1f850c060efb55ad03849e755bf9c6
parent1c59bba12621e154765a8255534e94a041dfd200 (diff)
restore agent_custid smart search, #17424
-rw-r--r--FS/FS/cust_main/Search.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/FS/FS/cust_main/Search.pm b/FS/FS/cust_main/Search.pm
index 1e9eee79d..31b89cd31 100644
--- a/FS/FS/cust_main/Search.pm
+++ b/FS/FS/cust_main/Search.pm
@@ -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);