[freeside-commits] branch master updated. c4e788ef6f21b5a8582a1005512a15ba2f022945
Ivan
ivan at 420.am
Tue Jan 26 20:16:01 PST 2016
The branch, master has been updated
via c4e788ef6f21b5a8582a1005512a15ba2f022945 (commit)
from 461cf66878e2d63d0360184aeeebcbc0e45acfb9 (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 c4e788ef6f21b5a8582a1005512a15ba2f022945
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Jan 26 20:15:58 2016 -0800
respect card-types config in backend (new customer payment types / 4.x), RT#39861
diff --git a/FS/FS/cust_payby.pm b/FS/FS/cust_payby.pm
index 79a1468..9111fdf 100644
--- a/FS/FS/cust_payby.pm
+++ b/FS/FS/cust_payby.pm
@@ -496,6 +496,8 @@ sub check {
sub check_payinfo_cardtype {
my $self = shift;
+ return '' unless $self->payby =~ /^(CARD|CHEK)$/;
+
my $payinfo = $self->payinfo;
$payinfo =~ s/\D//g;
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_payby.pm | 2 ++
1 file changed, 2 insertions(+)
More information about the freeside-commits
mailing list