summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-04-17 18:19:18 -0700
committerMark Wells <mark@freeside.biz>2012-04-17 18:19:18 -0700
commitd79c0d9b129507021f6c21f3e5974b2c84fe7d91 (patch)
treebc323438a2ae74509f39b8f3b52faf98975d3c3e
parent1d290564e5fe8cb9468d3369665f9587e0c06cf5 (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);