[freeside-commits] freeside/FS/FS/ClientAPI MasonComponent.pm, 1.5, 1.6

Ivan,,, ivan at wavetail.420.am
Thu Oct 22 12:56:25 PDT 2009


Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv10290

Modified Files:
	MasonComponent.pm 
Log Message:
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

Index: MasonComponent.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MasonComponent.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- MasonComponent.pm	22 Oct 2009 19:53:52 -0000	1.5
+++ MasonComponent.pm	22 Oct 2009 19:56:23 -0000	1.6
@@ -67,7 +67,7 @@
                      map  { $_->part_pkg }
                           $cust_main->ncancelled_pkgs;
 
-      unless ( $classnum{''} ) {
+      unless ( $classnum{''} || ! keys %classnum ) {
         @part_pkg = grep $classnum{ $_->classnum }, @part_pkg;
       }
     }



More information about the freeside-commits mailing list