diff options
Diffstat (limited to 'FS')
| -rw-r--r-- | FS/FS/cust_main/Search.pm | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/cust_main/Search.pm b/FS/FS/cust_main/Search.pm index fb516ee39..9de542cbc 100644 --- a/FS/FS/cust_main/Search.pm +++ b/FS/FS/cust_main/Search.pm @@ -814,7 +814,8 @@ sub search {    if ($params->{'flattened_pkgs'}) {      #my $pkg_join = ''; -    $addl_from .= ' LEFT JOIN cust_pkg USING ( custnum ) '; +    $addl_from .= +      ' LEFT JOIN cust_pkg ON ( cust_main.custnum = cust_pkg.custnum ) ';      if ($dbh->{Driver}->{Name} eq 'Pg') {  | 
