[freeside-commits] branch FREESIDE_4_BRANCH updated. 8be1c9f4cf65aea5218abb49c2123a796fa86fab

Ivan ivan at 420.am
Fri Mar 11 19:34:39 PST 2016


The branch, FREESIDE_4_BRANCH has been updated
       via  8be1c9f4cf65aea5218abb49c2123a796fa86fab (commit)
      from  7b8c690b5f4a7b071d4592e133575c88f7027497 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8be1c9f4cf65aea5218abb49c2123a796fa86fab
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Mar 11 19:34:39 2016 -0800

    fix customer package browse selection, RT#39822

diff --git a/FS/FS/cust_main/Packages.pm b/FS/FS/cust_main/Packages.pm
index 13c2945..792c05b 100644
--- a/FS/FS/cust_main/Packages.pm
+++ b/FS/FS/cust_main/Packages.pm
@@ -730,7 +730,7 @@ sub num_pkgs {
   }
   $sql = "AND $sql" if $sql && $sql !~ /^\s*$/ && $sql !~ /^\s*AND/i;
   my $sth = dbh->prepare(
-    "SELECT COUNT(*) FROM cust_pkg $addl_from WHERE custnum = ? $sql"
+    "SELECT COUNT(*) FROM cust_pkg $addl_from WHERE cust_pkg.custnum = ? $sql"
   ) or die dbh->errstr;
   $sth->execute($self->custnum) or die $sth->errstr;
   $sth->fetchrow_arrayref->[0];

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cust_main/Packages.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)




More information about the freeside-commits mailing list