[freeside-commits] branch FREESIDE_4_BRANCH updated. 734745daedd3efc6728ebfdb48eac1af71960a06

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


The branch, FREESIDE_4_BRANCH has been updated
       via  734745daedd3efc6728ebfdb48eac1af71960a06 (commit)
      from  8809044f78f3ea5d33d0d449a8f7070d52b54b07 (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 734745daedd3efc6728ebfdb48eac1af71960a06
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Dec 22 17:22:22 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/Search.pm b/FS/FS/cust_pkg/Search.pm
index 3a8e6d0..311dbdb 100644
--- a/FS/FS/cust_pkg/Search.pm
+++ b/FS/FS/cust_pkg/Search.pm
@@ -281,7 +281,7 @@ sub search {
   }
 
   ###
-  # parse refnum (advertising source)
+  # parse (customer) refnum (advertising source)
   ###
 
   if ( exists($params->{'refnum'}) ) {
@@ -292,7 +292,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/Search.pm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list