[freeside-commits] branch master updated. 9c7c2549038d64b4cf84d794ef6f461495bab4e8
Mark Wells
mark at 420.am
Wed Aug 3 16:16:42 PDT 2016
The branch, master has been updated
via 9c7c2549038d64b4cf84d794ef6f461495bab4e8 (commit)
from 9d963d1e6270bf67f385a4b5fda4e51cdf4e79ed (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9c7c2549038d64b4cf84d794ef6f461495bab4e8
Author: Mark Wells <mark at freeside.biz>
Date: Wed Aug 3 16:16:28 2016 -0700
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 04516e9..715e873 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.'_'.$_));
-----------------------------------------------------------------------
Summary of changes:
httemplate/edit/process/cust_main.cgi | 6 ++++++
1 file changed, 6 insertions(+)
More information about the freeside-commits
mailing list