From: Ivan Kohler Date: Fri, 12 Apr 2013 01:05:08 +0000 (-0700) Subject: fix "add package columns" in customer report, RT#22525 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=f4a34aeb6730e6a07ce1ca3562a1f2c704bb92bf;p=freeside.git fix "add package columns" in customer report, RT#22525 --- 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') {