diff options
author | ivan <ivan> | 2009-10-22 19:56:23 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-10-22 19:56:23 +0000 |
commit | 9010883978a249f1c8d428055e8c90cb36ec4c55 (patch) | |
tree | 0e4923e0793144e94e21cc462de0919aeb435e6a /FS/FS/ClientAPI/MasonComponent.pm | |
parent | 87465e82d516c55d68fb97fbb9c3afdec6a5dd03 (diff) |
make sure that in the case where there's no uncancelled active packages, the filter doesn't reduce the package list to nothing, RT#6029
Diffstat (limited to 'FS/FS/ClientAPI/MasonComponent.pm')
-rw-r--r-- | FS/FS/ClientAPI/MasonComponent.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/ClientAPI/MasonComponent.pm b/FS/FS/ClientAPI/MasonComponent.pm index e98e8dc..76d406c 100644 --- a/FS/FS/ClientAPI/MasonComponent.pm +++ b/FS/FS/ClientAPI/MasonComponent.pm @@ -67,7 +67,7 @@ my %session_callbacks = ( map { $_->part_pkg } $cust_main->ncancelled_pkgs; - unless ( $classnum{''} ) { + unless ( $classnum{''} || ! keys %classnum ) { @part_pkg = grep $classnum{ $_->classnum }, @part_pkg; } } |