diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-08-03 19:18:17 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-08-03 19:23:02 -0500 |
commit | cc78510d45ed8d0a15ba4e3204633fa07d0befb3 (patch) | |
tree | 08f9bc77f3141165b8538552211abd06649165f1 | |
parent | 5fc19693596421fcd080fdf26724a2eb11e1a743 (diff) |
RT#71518: Bug in the address editor [fixed query cleanup]
-rwxr-xr-x | httemplate/edit/process/cust_main.cgi | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi index 715e87377..74f8f2382 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" ) %> % @@ -59,12 +69,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.'_'.$_)); |