[freeside-commits] freeside/FS/FS cust_main.pm, 1.586.2.12, 1.586.2.13
Ivan,,,
ivan at wavetail.420.am
Sat Dec 31 18:57:58 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv4186
Modified Files:
Tag: FREESIDE_2_3_BRANCH
cust_main.pm
Log Message:
prevent automatic geocoding when upgrading an old db, RT#15539
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.586.2.12
retrieving revision 1.586.2.13
diff -u -w -d -r1.586.2.12 -r1.586.2.13
--- cust_main.pm 30 Dec 2011 22:11:52 -0000 1.586.2.12
+++ cust_main.pm 1 Jan 2012 02:57:55 -0000 1.586.2.13
@@ -1499,12 +1499,14 @@
}
+ unless ( $import ) {
$self->set_coord
if ! $self->coord_auto && ! $self->latitude && ! $self->longitude;
$self->set_coord('ship_')
if $self->has_ship_address && ! $self->ship_coord_auto
&& ! $self->ship_latitude && ! $self->ship_longitude;
+ }
local($ignore_expired_card) = 1
if $old->payby =~ /^(CARD|DCRD)$/
@@ -4984,6 +4986,7 @@
local($ignore_illegal_zip) = 1;
local($ignore_banned_card) = 1;
local($skip_fuzzyfiles) = 1;
+ local($import) = 1; #prevent automatic geocoding (need its own variable?)
$class->_upgrade_otaker(%opts);
}
More information about the freeside-commits
mailing list