[freeside-commits] branch FREESIDE_3_BRANCH updated. 4d1b604424473c32ea06449ed9d5fb29fe4ec3da

Mark Wells mark at 420.am
Thu Nov 7 13:32:42 PST 2013


The branch, FREESIDE_3_BRANCH has been updated
       via  4d1b604424473c32ea06449ed9d5fb29fe4ec3da (commit)
      from  b620cc47491a792f3205dc4a833df20a5584f5a5 (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 4d1b604424473c32ea06449ed9d5fb29fe4ec3da
Author: Mark Wells <mark at freeside.biz>
Date:   Thu Nov 7 13:32:23 2013 -0800

    censustract upgrade should skip prospect locations, #25660

diff --git a/FS/FS/cust_main/Location.pm b/FS/FS/cust_main/Location.pm
index 6b707b1..52fe313 100644
--- a/FS/FS/cust_main/Location.pm
+++ b/FS/FS/cust_main/Location.pm
@@ -301,6 +301,7 @@ sub _upgrade_data {
       qsearch('cust_location', { 'censustract' => '' })
     ) {
       my $custnum = $cust_location->custnum;
+      next if !$custnum; # avoid doing this for prospect locations
       my $address1 = $cust_location->address1;
       # find the last history record that had that address
       my $last_h = qsearchs({

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

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




More information about the freeside-commits mailing list