diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-08-03 12:27:05 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-08-03 19:32:48 -0500 |
commit | d75c483901028621700cad4c1b27e9ebc19d985d (patch) | |
tree | c5ee74502136215c3d35458dadba889217b50e91 /FS | |
parent | c8ea63ee0f94ff3d3ac3917e41b0e38fb53b3fd4 (diff) |
RT#71518: Bug in the address editor [v3 reconcile]
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/Record.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 18624e6c7..55cca08ca 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -1,6 +1,7 @@ package FS::Record; use strict; +use charnames ':full'; use vars qw( $AUTOLOAD @ISA @EXPORT_OK $DEBUG %virtual_fields_cache $money_char $lat_lower $lon_upper @@ -2721,6 +2722,10 @@ sub ut_coord { my $coord = $self->getfield($field); my $neg = $coord =~ s/^(-)//; + # ignore degree symbol at the end, + # but not otherwise supporting degree/minutes/seconds symbols + $coord =~ s/\N{DEGREE SIGN}\s*$//; + my ($d, $m, $s) = (0, 0, 0); if ( |