fix cancel method
[freeside.git] / FS / FS / cust_main.pm
index 417937a..986fef3 100644 (file)
@@ -1000,7 +1000,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