quiet CGI param warning
[freeside.git] / httemplate / edit / process / cust_location-censustract.html
index 6edaca3..1bf4d76 100644 (file)
@@ -3,7 +3,7 @@
 %   $cgi->redirect(popurl(3). 'edit/cust_location-censustract.html?'. $cgi->query_string );
 % } else {
 
-    <% header("Census tract changed") %>
+    <& /elements/header-popup.html, "Census tract changed" &>
       <SCRIPT TYPE="text/javascript">
         topreload();
       </SCRIPT>
@@ -28,7 +28,7 @@ my $cust_location = qsearchs({
 });
 die "unknown locationnum $locationnum" unless $cust_location;
 
-$cust_location->set('censustract', $cgi->param('censustract'));
+$cust_location->set('censustract', scalar($cgi->param('enter_censustract')));
 my $error = $cust_location->replace;
 
 </%init>