[freeside-commits] branch FREESIDE_4_BRANCH updated. 761d6ec32eab8432c9bd4991ffe096bb68a04852
Ivan Kohler
ivan at freeside.biz
Thu Feb 14 12:24:54 PST 2019
The branch, FREESIDE_4_BRANCH has been updated
via 761d6ec32eab8432c9bd4991ffe096bb68a04852 (commit)
from 247440f3f5ad7d566437e5d8729222b0298741b5 (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 761d6ec32eab8432c9bd4991ffe096bb68a04852
Author: Ivan Kohler <ivan at freeside.biz>
Date: Thu Feb 14 12:24:53 2019 -0800
restore fallback to customer billing address for CC transactions, RT#77641, RT#71513
diff --git a/FS/FS/cust_main/Billing_Realtime.pm b/FS/FS/cust_main/Billing_Realtime.pm
index d190c2e20..3284ee20c 100644
--- a/FS/FS/cust_main/Billing_Realtime.pm
+++ b/FS/FS/cust_main/Billing_Realtime.pm
@@ -330,6 +330,8 @@ sub _bop_cust_payby_options {
# can be called as class method,
# but can't load default name/phone fields as class method
+# (why was this added? ah, it might get called from realtime_tokenize in this
+# fashion "to tokenize old records on upgrade")
sub _bop_content {
my ($self, $options) = @_;
my %content = ();
@@ -361,7 +363,7 @@ sub _bop_content {
$content{name} = $payname if $payname;
- if ( exists($options->{'address1'}) ) {
+ if ( exists($options->{'address1'}) && length($options->{'address1'}) ) {
$content{address} = $options->{'address1'};
my $address2 = $options->{'address2'};
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_main/Billing_Realtime.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list