From 9c7c2549038d64b4cf84d794ef6f461495bab4e8 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 3 Aug 2016 16:16:28 -0700 Subject: [PATCH] strip degree signs from coord fields before saving CGI param state, workaround for #71518 --- httemplate/edit/process/cust_main.cgi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi index 04516e984..715e87377 100755 --- a/httemplate/edit/process/cust_main.cgi +++ b/httemplate/edit/process/cust_main.cgi @@ -59,6 +59,12 @@ if ( $conf->exists('agent-ship_address', $cgi->param('agentnum')) ) { my %locations; for my $pre (qw(bill ship)) { + foreach (qw( latitude longitude)) { + my $coord = $cgi->param($pre.'_'.$_); + $coord =~ s/\N{DEGREE SIGN}\s*$//; + $cgi->param($pre.'_'.$_, $coord); + } + my %hash; foreach ( FS::cust_main->location_fields ) { $hash{$_} = scalar($cgi->param($pre.'_'.$_)); -- 2.11.0