[freeside-commits] branch FREESIDE_4_BRANCH updated. a7699a90fb44c8a935c8f980dd8f8350ac9d2d81
Ivan
ivan at 420.am
Tue Jan 26 20:16:03 PST 2016
The branch, FREESIDE_4_BRANCH has been updated
via a7699a90fb44c8a935c8f980dd8f8350ac9d2d81 (commit)
from 1329148a0187e7ccf5e77680ea5208e3456858da (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 a7699a90fb44c8a935c8f980dd8f8350ac9d2d81
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Jan 26 20:16:02 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