diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-08-03 12:27:05 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-08-03 18:53:03 -0500 |
commit | 60985040921a59d5bda7894f00b321a4f2cbad17 (patch) | |
tree | ccc69c32bda64bd15817860fdc997f6ec28276d9 /FS | |
parent | b4236044e83406ccfe7cf19d7689da1ebe4e6d7d (diff) |
RT#71518: Bug in the address editor
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 0095b1537..cea328515 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -2,6 +2,7 @@ package FS::Record; use base qw( Exporter ); use strict; +use charnames ':full'; use vars qw( $AUTOLOAD %virtual_fields_cache %fk_method_cache $fk_table_cache $money_char $lat_lower $lon_upper @@ -2909,6 +2910,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 ( |