X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main%2FSearch.pm;h=c8a084c9b045d8799a945e7e01991dcfa726246e;hb=fa391b8ca16d6cb128592ee0da8921c50924340f;hp=8e6d18571d49d8842037de7562acfbe34c2b4442;hpb=d6e587f3c4c71170a7cc58bf6755d616777bc131;p=freeside.git diff --git a/FS/FS/cust_main/Search.pm b/FS/FS/cust_main/Search.pm index 8e6d18571..c8a084c9b 100644 --- a/FS/FS/cust_main/Search.pm +++ b/FS/FS/cust_main/Search.pm @@ -1013,10 +1013,6 @@ sub search { 'ON (cust_main.'.$pre.'locationnum = '.$pre.'location.locationnum) '; } - # always make referral available in results - # (maybe we should be using FS::UI::Web::join_cust_main instead?) - $addl_from .= ' LEFT JOIN part_referral ON (cust_main.refnum = part_referral.refnum) '; - my $count_query = "SELECT COUNT(*) FROM cust_main $addl_from $extra_sql"; my @select = (