X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fconfirm-censustract.html;h=9e0af498fc901989c69808f76f239c3fc067116f;hb=9fccafa7662f8eac572939f64867e625945a1c92;hp=6a11617e71ec25cca878524ab9e7923d4b3f1b65;hpb=2bb7db96a07599e980323c1b6b23a8c79cc17a9a;p=freeside.git diff --git a/httemplate/misc/confirm-censustract.html b/httemplate/misc/confirm-censustract.html index 6a11617e7..9e0af498f 100644 --- a/httemplate/misc/confirm-censustract.html +++ b/httemplate/misc/confirm-censustract.html @@ -61,7 +61,11 @@ warn $cgi->param('q') if $DEBUG; my $q = decode_json($cgi->param('q')) or die "bad argument '".$cgi->param('q')."'"; -my $pre = $q->{'same'} ? 'bill_' : 'ship_'; +my $pre = ''; +if ($q->{billship}) { + # this still isn't quite correct + $pre = $q->{'same'} ? 'bill_' : 'ship_'; +} my %location = ( map { $_ => $q->{$pre.$_} } qw( company address1 address2 city state zip country latitude longitude )