[freeside-commits] branch FREESIDE_4_BRANCH updated. fd1fe8f72b25a60966f9a2a05943d312c7240df4

Ivan ivan at 420.am
Fri Aug 25 10:25:13 PDT 2017


The branch, FREESIDE_4_BRANCH has been updated
       via  fd1fe8f72b25a60966f9a2a05943d312c7240df4 (commit)
      from  a32d53ec735523beff800af4ff617f85d5808bd7 (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 fd1fe8f72b25a60966f9a2a05943d312c7240df4
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Aug 25 10:25:12 2017 -0700

    fix 4.x cust_payby vs legacy customer import, RT#77221

diff --git a/FS/FS/cust_main/Import.pm b/FS/FS/cust_main/Import.pm
index f9b167c..0734c0e 100644
--- a/FS/FS/cust_main/Import.pm
+++ b/FS/FS/cust_main/Import.pm
@@ -504,7 +504,7 @@ sub batch_import {
     }
 
     my %options = ('invoicing_list' => $invoicing_list);
-    $options{'cust_payby'} = $cust_payby if $cust_payby;
+    $options{'cust_payby'} = [ $cust_payby ] if $cust_payby;
 
     my $error = $cust_main->insert( \%hash, %options );
 

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

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




More information about the freeside-commits mailing list