diff options
author | Mark Wells <mark@freeside.biz> | 2013-03-12 12:35:56 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2013-03-12 12:35:56 -0700 |
commit | 37cd5b0c642742a783a4a7dfb829b2440184820e (patch) | |
tree | 820cfcb60bda43d16bc7f98a672704434fc6f519 | |
parent | 483c59350c99e30bd7f9e93d5c9f4e117204d1b4 (diff) |
fix cust_svc smart search, from #940
-rw-r--r-- | FS/FS/cust_svc.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm index b608b2349..bbf4eedf8 100644 --- a/FS/FS/cust_svc.pm +++ b/FS/FS/cust_svc.pm @@ -13,6 +13,7 @@ use FS::pkg_svc; use FS::domain_record; use FS::part_export; use FS::cdr; +use FS::UI::Web; #most FS::svc_ classes are autoloaded in svc_x emthod use FS::svc_acct; #this one is used in the cache stuff @@ -883,7 +884,7 @@ sub smart_search_param { my $extra_sql = ' WHERE '.join(' AND ', @extra_sql); #for agentnum my $addl_from = ' LEFT JOIN cust_pkg USING ( pkgnum )'. - ' LEFT JOIN cust_main USING ( custnum )'. + FS::UI::Web::join_cust_main('cust_pkg', 'cust_pkg'). ' LEFT JOIN part_svc USING ( svcpart )'; ( |