diff options
author | Mitch Jackson <mitch@freeside.biz> | 2018-08-28 14:05:17 -0400 |
---|---|---|
committer | Mitch Jackson <mitch@freeside.biz> | 2018-08-28 14:05:17 -0400 |
commit | 6941a2c5684a7483dbdfe6afa50af3633b6dbddb (patch) | |
tree | 5a6af1e1a6b16df2a11089427aaf9192edd27817 | |
parent | 85fead435919494470c22f7785a78a4516593a9d (diff) |
RT# 80869 Improve cust_payby.paydate validation
-rw-r--r-- | FS/FS/cust_payby.pm | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |