fix cancel method
authorivan <ivan>
Thu, 22 Jan 2004 00:21:25 +0000 (00:21 +0000)
committerivan <ivan>
Thu, 22 Jan 2004 00:21:25 +0000 (00:21 +0000)
FS/FS/cust_main.pm

index 86962ce..6ca3287 100644 (file)
@@ -1016,7 +1016,7 @@ Always returns a list: an empty list on success or a list of errors.
 
 sub cancel {
   my $self = shift;
-  grep { $_->cancel(@_) } $self->ncancelled_pkgs;
+  grep { $_ } map { $_->cancel(@_) } $self->ncancelled_pkgs;
 }
 
 =item agent