summaryrefslogtreecommitdiff
path: root/httemplate/misc/cust_main-cancel.cgi
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-02-10 14:08:14 -0600
committerJonathan Prykop <jonathan@freeside.biz>2015-02-10 14:08:14 -0600
commitd9ab02b37871572303a9d3c47cd8b3d79e37cce9 (patch)
treea3480b6b616b6ede5b8ea70efc63efa90e9edb39 /httemplate/misc/cust_main-cancel.cgi
parent0db02d518080007ae5c682836390cdb5e14ac916 (diff)
Bug fix: list returned by cust_main->cancel was being displayed in scalar context
Diffstat (limited to 'httemplate/misc/cust_main-cancel.cgi')
-rwxr-xr-xhttemplate/misc/cust_main-cancel.cgi3
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 ) {