X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main%2FLocation.pm;h=ba3513b2f9044f26ecd825c82d9802fee1524dea;hb=e710e07e4451b7c615fb477799dc64bf3490248c;hp=d1d6d67ffad1c25768e3fd0c1bf739b9d9b69d85;hpb=01629c3c934f1f6fd2ab9de5f7638f671fd59791;p=freeside.git diff --git a/FS/FS/cust_main/Location.pm b/FS/FS/cust_main/Location.pm index d1d6d67ff..ba3513b2f 100644 --- a/FS/FS/cust_main/Location.pm +++ b/FS/FS/cust_main/Location.pm @@ -8,7 +8,7 @@ use FS::cust_location; use Carp qw(carp); -$DEBUG = 1; +$DEBUG = 0; $me = '[FS::cust_main::Location]'; my $init = 0; @@ -18,7 +18,8 @@ BEGIN { no strict 'refs'; @location_fields = qw( address1 address2 city county state zip country district - latitude longitude coord_auto censustract censusyear geocode ); + latitude longitude coord_auto censustract censusyear geocode + addr_clean ); foreach my $f (@location_fields) { *{"FS::cust_main::Location::$f"} = sub { @@ -146,7 +147,7 @@ sub _upgrade_data { # just in case someone still doesn't have these if ( !$phone_type{$_}->phonetypenum ) { $error = $phone_type{$_}->insert; - die "error creating phone type '$_': $error"; + die "error creating phone type '$_': $error" if $error; } }