make sure that in the case where there's no uncancelled active packages, the filter...
authorivan <ivan>
Thu, 22 Oct 2009 19:56:23 +0000 (19:56 +0000)
committerivan <ivan>
Thu, 22 Oct 2009 19:56:23 +0000 (19:56 +0000)
FS/FS/ClientAPI/MasonComponent.pm

index e98e8dc..76d406c 100644 (file)
@@ -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;
       }
     }