(no commit message)
[freeside.git] / httemplate / edit / cust_main.cgi
index 3ba0970..aae8093 100755 (executable)
@@ -4,7 +4,7 @@
       ' onUnload="myclose()"'
 ) %>
 
-<% include('/elements.error.html') %>
+<% include('/elements/error.html') %>
 
 <FORM NAME="topform" STYLE="margin-bottom: 0">
 <INPUT TYPE="hidden" NAME="custnum" VALUE="<% $custnum %>">
@@ -530,7 +530,10 @@ if ( $cgi->param('error') ) {
   $stateid = '';
   $payinfo = '';
 }
+
+my $error = $cgi->param('error');
 $cgi->delete_all();
+$cgi->param('error', $error);
 
 my $action = $custnum ? 'Edit' : 'Add';
 $action .= ": ". $cust_main->name if $custnum;