[freeside-commits] branch master updated. 3df10fe3f94cbae6c6bb247ccc1137d71bc44bbb

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


The branch, master has been updated
       via  3df10fe3f94cbae6c6bb247ccc1137d71bc44bbb (commit)
      from  943f3ff4145a0ce2ef946aba3f0ba4aa495f224e (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 3df10fe3f94cbae6c6bb247ccc1137d71bc44bbb
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Mar 11 19:34:35 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