From: ivan Date: Thu, 22 Oct 2009 19:56:23 +0000 (+0000) Subject: make sure that in the case where there's no uncancelled active packages, the filter... X-Git-Tag: root_of_svc_elec_features~751 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=9010883978a249f1c8d428055e8c90cb36ec4c55;p=freeside.git 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 --- 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; } }