[freeside-commits] branch FREESIDE_3_BRANCH updated. 93e7186ecd347c46a09bdc88ca391e8f0d1ab7da

Ivan ivan at 420.am
Wed Feb 1 09:26:51 PST 2017


The branch, FREESIDE_3_BRANCH has been updated
       via  93e7186ecd347c46a09bdc88ca391e8f0d1ab7da (commit)
      from  00277822362dc6b54f9ba8276ff05cbb55bc90d0 (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 93e7186ecd347c46a09bdc88ca391e8f0d1ab7da
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Feb 1 09:26:50 2017 -0800

    fix Tokenized payinfo on upgrade if we can, RT#71513

diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index cd8f573..abf51fa 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -5821,8 +5821,8 @@ sub _upgrade_next_recnum {
             ' FROM '.$table.
             ' WHERE '.$tclass->primary_key.' > '.$$lastrecnum.
             "   AND payby IN ( 'CARD', 'DCRD', 'CHEK', 'DCHK' ) ".
-            "   AND ( length(payinfo) > 80 OR paycardtype = 'Tokenized' ) ".
-            ' ORDER BY '.$tclass->primary_key.' LIMIT 500';;
+            "   AND ( length(payinfo) < 80 OR paycardtype = 'Tokenized' ) ".
+            ' ORDER BY '.$tclass->primary_key.' LIMIT 500';
   my $sth = $dbh->prepare($sql) or die $dbh->errstr;
   $sth->execute() or die $sth->errstr;
   my @recnums;

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

Summary of changes:
 FS/FS/cust_main.pm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list