diff options
author | Christopher Burger <burgerc@freeside.biz> | 2017-10-09 14:36:07 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2017-10-09 14:36:07 -0400 |
commit | ee27cd8eea7b135db2ba8a6b1a6ac8933171d9d0 (patch) | |
tree | b20a7dd5acce4f3553b4c866ea3f64933df807d1 /FS/FS/cust_payby.pm | |
parent | b9c2b7cc73ad6455613268ae9e884ca0d34a127d (diff) |
RT# 77193 - fixed error when inserting new ach payby thru selfservice on V4. Now works
Diffstat (limited to 'FS/FS/cust_payby.pm')
-rw-r--r-- | FS/FS/cust_payby.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/FS/FS/cust_payby.pm b/FS/FS/cust_payby.pm index fd90597bf..704741f3d 100644 --- a/FS/FS/cust_payby.pm +++ b/FS/FS/cust_payby.pm @@ -159,8 +159,9 @@ sub insert { local $FS::UID::AutoCommit = 0; my $dbh = dbh; - my $error = $self->check_payinfo_cardtype - || $self->SUPER::insert; + my $error = $self->check_payinfo_cardtype if $self->payby =~/^(CARD|DCRD)$/; + $self->SUPER::insert unless $error; + if ( $error ) { $dbh->rollback if $oldAutoCommit; return $error; |