From: Mark Wells Date: Wed, 3 Aug 2016 23:16:28 +0000 (-0700) Subject: strip degree signs from coord fields before saving CGI param state, workaround for... X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=9c7c2549038d64b4cf84d794ef6f461495bab4e8 strip degree signs from coord fields before saving CGI param state, workaround for #71518 --- 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.'_'.$_));