From a180208786cccb72ab017e39fff0cb128aa6ba01 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 7 Nov 2013 13:32:37 -0800 Subject: [PATCH] censustract upgrade should skip prospect locations, #25660 --- FS/FS/cust_main/Location.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/FS/FS/cust_main/Location.pm b/FS/FS/cust_main/Location.pm index 6b707b1eb..52fe313c6 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({ -- 2.11.0