diff options
author | ivan <ivan> | 2004-01-22 00:11:01 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-01-22 00:11:01 +0000 |
commit | 9163d831264988af6065139c7531d59a1bb29c10 (patch) | |
tree | caf6477653a08060c76144fa963611b7f1ef29c6 /httemplate/misc/cust_main-cancel.cgi | |
parent | eef42f43c02b386ed7a0b1ce9911964bb94d3e96 (diff) |
report cancellation errors properly
Diffstat (limited to 'httemplate/misc/cust_main-cancel.cgi')
-rwxr-xr-x | httemplate/misc/cust_main-cancel.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/misc/cust_main-cancel.cgi b/httemplate/misc/cust_main-cancel.cgi index 526e128a4..257c3384f 100755 --- a/httemplate/misc/cust_main-cancel.cgi +++ b/httemplate/misc/cust_main-cancel.cgi @@ -7,8 +7,8 @@ my $custnum = $1; my $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } ); -my $error = $cust_main->cancel; -eidiot($error) if $error; +my @errors = $cust_main->cancel; +eidiot(join(' / ', @errors)) if scalar(@errors); #print $cgi->redirect($p. "view/cust_main.cgi?". $cust_main->custnum); print $cgi->redirect($p); |