[freeside-commits] branch FREESIDE_3_BRANCH updated. c48c387bf982b95dbd2f0e26e5f4fa967884af35

Ivan ivan at 420.am
Thu Dec 22 17:23:11 PST 2016


The branch, FREESIDE_3_BRANCH has been updated
       via  c48c387bf982b95dbd2f0e26e5f4fa967884af35 (commit)
      from  3bde0c43f02bf817cce2458a1a49312b1aef1de7 (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 c48c387bf982b95dbd2f0e26e5f4fa967884af35
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Dec 22 17:23:08 2016 -0800

    fix "column refnum is ambiguous" error pulling up churn detail when you have a single advertising source, RT#73852

diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index c1039b5..819dade 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -5343,7 +5343,7 @@ sub search {
   }
 
   ###
-  # parse refnum (advertising source)
+  # parse (customer) refnum (advertising source)
   ###
 
   if ( exists($params->{'refnum'}) ) {
@@ -5354,7 +5354,7 @@ sub search {
       @refnum = ( $params->{'refnum'} );
     }
     my $in = join(',', grep /^\d+$/, @refnum);
-    push @where, "refnum IN($in)" if length $in;
+    push @where, "cust_main.refnum IN($in)" if length $in;
   }
 
   ###

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

Summary of changes:
 FS/FS/cust_pkg.pm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list