projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9d963d1
)
strip degree signs from coord fields before saving CGI param state, workaround for...
author
Mark Wells
<mark@freeside.biz>
Wed, 3 Aug 2016 23:16:28 +0000
(16:16 -0700)
committer
Mark Wells
<mark@freeside.biz>
Wed, 3 Aug 2016 23:16:28 +0000
(16:16 -0700)
httemplate/edit/process/cust_main.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/process/cust_main.cgi
b/httemplate/edit/process/cust_main.cgi
index
04516e9
..
715e873
100755
(executable)
--- 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.'_'.$_));