oops, fix display of errors on customer edit
[freeside.git] / httemplate / edit / cust_main.cgi
index 4e4336a..aae8093 100755 (executable)
@@ -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;