summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-08-03 19:18:17 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-08-03 19:34:16 -0500
commit5ed1e9acf8b7fcaacb5face4ae74cc6e13d5bbe8 (patch)
treea223eb80bde832e71482c4560f831d8ba8ad41b9 /httemplate
parent339613ee8c381087aad25c1e07e083f48764326c (diff)
RT#71518: Bug in the address editor [fixed query cleanup]
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/edit/process/cust_main.cgi16
1 files changed, 10 insertions, 6 deletions
diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi
index a9439fa89..4b8993980 100755
--- a/httemplate/edit/process/cust_main.cgi
+++ b/httemplate/edit/process/cust_main.cgi
@@ -1,5 +1,15 @@
% if ( $error ) {
% $cgi->param('error', $error);
+% # workaround for create_uri_query's mangling of unicode characters,
+% # false laziness with FS::Record::ut_coord
+% use charnames ':full';
+% 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 $query = $m->scomp('/elements/create_uri_query', 'secure'=>1);
<% $cgi->redirect(popurl(2). "cust_main.cgi?$query" ) %>
%
@@ -80,12 +90,6 @@ 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.'_'.$_));