[freeside-commits] branch master updated. 4645160bf2a76932461f06cfaf472de006ab414b
Mark Wells
mark at 420.am
Thu Apr 4 18:54:14 PDT 2013
The branch, master has been updated
via 4645160bf2a76932461f06cfaf472de006ab414b (commit)
from 3e5de9ecd12870fdd96d40198dc7490140b6000f (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 4645160bf2a76932461f06cfaf472de006ab414b
Author: Mark Wells <mark at freeside.biz>
Date: Thu Apr 4 18:50:00 2013 -0700
avoid needless location changes when coordinates are null, #22364
diff --git a/FS/FS/cust_location.pm b/FS/FS/cust_location.pm
index 355bdb0..b12a161 100644
--- a/FS/FS/cust_location.pm
+++ b/FS/FS/cust_location.pm
@@ -121,6 +121,10 @@ point.
sub new_or_existing {
my $class = shift;
my %hash = ref($_[0]) ? %{$_[0]} : @_;
+ # if coords are empty, then it doesn't matter if they're auto or not
+ if ( !$hash{'latitude'} and !$hash{'longitude'} ) {
+ delete $hash{'coord_auto'};
+ }
foreach ( qw(address1 address2 city county state zip country geocode
disabled ) ) {
# empty fields match only empty fields
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_location.pm | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
More information about the freeside-commits
mailing list