[freeside-commits] branch master updated. b279ca3f1c66ea5f589421196b7c5fc5f7163ec4

Mark Wells mark at 420.am
Fri Apr 19 12:37:01 PDT 2013


The branch, master has been updated
       via  b279ca3f1c66ea5f589421196b7c5fc5f7163ec4 (commit)
      from  110a9f8a594aa5cf5ac1cc9c91aee90fea67c949 (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 b279ca3f1c66ea5f589421196b7c5fc5f7163ec4
Author: Mark Wells <mark at freeside.biz>
Date:   Fri Apr 19 12:35:02 2013 -0700

    avoid some redundant upgrades, #18548

diff --git a/FS/FS/cust_pay.pm b/FS/FS/cust_pay.pm
index 7b01ff5..0e9e8a7 100644
--- a/FS/FS/cust_pay.pm
+++ b/FS/FS/cust_pay.pm
@@ -1063,6 +1063,8 @@ sub _upgrade_data {  #class method
             warn "couldn't find paybatch history record for $table ".$object->$pkey."\n";
             next;
           }
+          # if the paybatch didn't have an auth string, then it's fine
+          $h->paybatch =~ /:(\w+):/ or next;
           # set paybatch to what it was in that record
           $object->set('paybatch', $h->paybatch)
           # and then upgrade it like the old records

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

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




More information about the freeside-commits mailing list