From fd1fe8f72b25a60966f9a2a05943d312c7240df4 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Fri, 25 Aug 2017 10:25:12 -0700 Subject: [PATCH] fix 4.x cust_payby vs legacy customer import, RT#77221 --- FS/FS/cust_main/Import.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/cust_main/Import.pm b/FS/FS/cust_main/Import.pm index f9b167c82..0734c0ef5 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 ); -- 2.20.1