summaryrefslogtreecommitdiff
path: root/httemplate/edit/process
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-08-03 16:16:28 -0700
committerJonathan Prykop <jonathan@freeside.biz>2016-08-03 19:33:51 -0500
commit339613ee8c381087aad25c1e07e083f48764326c (patch)
tree76221fa91a4e08069647494ab84da78ee2f72f14 /httemplate/edit/process
parentd75c483901028621700cad4c1b27e9ebc19d985d (diff)
strip degree signs from coord fields before saving CGI param state, workaround for #71518
Diffstat (limited to 'httemplate/edit/process')
-rwxr-xr-xhttemplate/edit/process/cust_main.cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi
index 6961d18c0..a9439fa89 100755
--- a/httemplate/edit/process/cust_main.cgi
+++ b/httemplate/edit/process/cust_main.cgi
@@ -80,6 +80,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.'_'.$_));