[freeside-commits] branch FREESIDE_3_BRANCH updated. 5b22d57dddf428ea5ba400196a980c12d67ecc02

Ivan ivan at 420.am
Mon Aug 12 22:51:45 PDT 2013


The branch, FREESIDE_3_BRANCH has been updated
       via  5b22d57dddf428ea5ba400196a980c12d67ecc02 (commit)
      from  b205131f91a5cdb5d1fe113518f6212d32c91d88 (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 5b22d57dddf428ea5ba400196a980c12d67ecc02
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Aug 12 22:51:44 2013 -0700

    search for 15 digit credit cards too, RT#24428

diff --git a/FS/FS/cust_main/Search.pm b/FS/FS/cust_main/Search.pm
index 6c79315..5c87f2e 100644
--- a/FS/FS/cust_main/Search.pm
+++ b/FS/FS/cust_main/Search.pm
@@ -374,7 +374,7 @@ sub smart_search {
   ( my $card_search = $nospace_search ) =~ s/\-//g;
   $card_search =~ s/[x\*\.\_]/x/gi;
   
-  if ( $nospace_search =~ /^[\dx]{16}$/i ) { #credit card search
+  if ( $nospace_search =~ /^[\dx]{15,16}$/i ) { #credit card search
 
     ( my $like_search = $card_search ) =~ s/x/_/g;
     my $mask_search = FS::payinfo_Mixin->mask_payinfo('CARD', $card_search);

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

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




More information about the freeside-commits mailing list