From: Mark Wells Date: Wed, 18 Apr 2012 01:19:05 +0000 (-0700) Subject: restore agent_custid smart search, #17424 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=3ce70fff14b951189273348f4ddd06aa1069eafc restore agent_custid smart search, #17424 --- 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);