summaryrefslogtreecommitdiff
path: root/FS/FS/Record.pm
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-08-03 12:27:05 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-08-03 12:27:05 -0500
commit9d963d1e6270bf67f385a4b5fda4e51cdf4e79ed (patch)
tree96694458ecb075506cd4ed04c1faaa265f041f61 /FS/FS/Record.pm
parent34c878349988d97957f1d53427896a4d70afb392 (diff)
RT#71518: Bug in the address editor
Diffstat (limited to 'FS/FS/Record.pm')
-rw-r--r--FS/FS/Record.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index 7ec811752..c3d397389 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
@@ -2913,6 +2914,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 (