From 9010883978a249f1c8d428055e8c90cb36ec4c55 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 22 Oct 2009 19:56:23 +0000 Subject: [PATCH] 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 --- FS/FS/ClientAPI/MasonComponent.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/ClientAPI/MasonComponent.pm b/FS/FS/ClientAPI/MasonComponent.pm index e98e8dc4f..76d406c45 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; } } -- 2.20.1