Bug fix: list returned by cust_main->cancel was being displayed in scalar context
authorJonathan Prykop <jonathan@freeside.biz>
Tue, 10 Feb 2015 20:08:14 +0000 (14:08 -0600)
committerJonathan Prykop <jonathan@freeside.biz>
Tue, 10 Feb 2015 20:08:14 +0000 (14:08 -0600)
httemplate/misc/cust_main-cancel.cgi

index a78a8b3..f6fd1e9 100755 (executable)
@@ -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 ) {