oops, fix display of errors on customer edit
authorivan <ivan>
Sun, 3 Feb 2008 01:43:33 +0000 (01:43 +0000)
committerivan <ivan>
Sun, 3 Feb 2008 01:43:33 +0000 (01:43 +0000)
httemplate/edit/cust_main.cgi

index e93524d..5a06b11 100755 (executable)
@@ -524,7 +524,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;