diff options
author | Mark Wells <mark@freeside.biz> | 2016-08-03 16:16:28 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-08-03 16:16:28 -0700 |
commit | 9c7c2549038d64b4cf84d794ef6f461495bab4e8 (patch) | |
tree | 8dc10db8ab2b29ac0982f1931e0ff16d8e28fa14 | |
parent | 9d963d1e6270bf67f385a4b5fda4e51cdf4e79ed (diff) |
strip degree signs from coord fields before saving CGI param state, workaround for #71518
-rwxr-xr-x | httemplate/edit/process/cust_main.cgi | 6 |
1 files changed, 6 insertions, 0 deletions
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.'_'.$_)); |