projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec02246
)
fix 4.x upgrades of address-less customers, RT#24968
author
Ivan Kohler
<ivan@freeside.biz>
Mon, 9 Dec 2013 20:24:58 +0000
(12:24 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Mon, 9 Dec 2013 20:24:58 +0000
(12:24 -0800)
FS/FS/cust_main/Location.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_main/Location.pm
b/FS/FS/cust_main/Location.pm
index
4bcffab
..
4f382af
100644
(file)
--- a/
FS/FS/cust_main/Location.pm
+++ b/
FS/FS/cust_main/Location.pm
@@
-158,7
+158,11
@@
sub _upgrade_data {
}
}
- foreach my $cust_main (qsearch('cust_main', { bill_locationnum => '' })) {
+ foreach my $cust_main (qsearch('cust_main', {
+ bill_locationnum => '',
+ address1 => { op=>'!=', value=>'' },
+ }))
+ {
# Step 1: extract billing and service addresses into cust_location
my $custnum = $cust_main->custnum;
my $bill_location = FS::cust_location->new(