[freeside-commits] branch master updated. 6941a2c5684a7483dbdfe6afa50af3633b6dbddb

Mitch Jackson mitch at freeside.biz
Tue Aug 28 11:05:48 PDT 2018


The branch, master has been updated
       via  6941a2c5684a7483dbdfe6afa50af3633b6dbddb (commit)
      from  85fead435919494470c22f7785a78a4516593a9d (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 6941a2c5684a7483dbdfe6afa50af3633b6dbddb
Author: Mitch Jackson <mitch at freeside.biz>
Date:   Tue Aug 28 14:05:17 2018 -0400

    RT# 80869 Improve cust_payby.paydate validation

diff --git a/FS/FS/cust_payby.pm b/FS/FS/cust_payby.pm
index 6d7ece6ca..c497059fa 100644
--- a/FS/FS/cust_payby.pm
+++ b/FS/FS/cust_payby.pm
@@ -315,7 +315,6 @@ sub check {
     #encrypted #|| $self->ut_textn('payinfo')
     #encrypted #|| $self->ut_textn('paycvv')
 #    || $self->ut_textn('paymask') #XXX something
-    || $self->ut_daten('paydate')
     || $self->ut_numbern('paystart_month')
     || $self->ut_numbern('paystart_year')
     || $self->ut_numbern('payissue')
@@ -546,6 +545,9 @@ sub check {
     return $error if $error;
   }
 
+  $error = $self->ut_daten('paydate');
+  return $error if $error;
+
   $self->SUPER::check;
 }
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cust_payby.pm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list