diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-02-10 14:08:14 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-03-02 14:35:34 -0600 |
commit | 20a1e12e4dd57dfa69979918d4da524a30d36462 (patch) | |
tree | 7bc693e31f19877f77b329e4f9ffc99fa010c5a6 | |
parent | 726bac7944dd7f768fe50b1d615b2b67cd466424 (diff) |
Bug fix: list returned by cust_main->cancel was being displayed in scalar context
-rwxr-xr-x | httemplate/misc/cust_main-cancel.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/misc/cust_main-cancel.cgi b/httemplate/misc/cust_main-cancel.cgi index a78a8b3dc..f6fd1e915 100755 --- a/httemplate/misc/cust_main-cancel.cgi +++ b/httemplate/misc/cust_main-cancel.cgi @@ -54,10 +54,11 @@ if ( $error ) { } else { warn "cancelling $cust_main"; - $error = $cust_main->cancel( + my @error = $cust_main->cancel( #returns list of errors 'ban' => $ban, 'reason' => $reasonnum, ); + $error = join(', ',@error); } if ( $error ) { |