[freeside-commits] freeside/FS/FS cust_pkg.pm, 1.179.2.32, 1.179.2.33

Ivan,,, ivan at wavetail.420.am
Thu Aug 18 16:39:45 PDT 2011


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

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	cust_pkg.pm 
Log Message:
attempt fixing "multiple states" links, RT#13922

Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.179.2.32
retrieving revision 1.179.2.33
diff -u -w -d -r1.179.2.32 -r1.179.2.33
--- cust_pkg.pm	18 Aug 2011 23:29:25 -0000	1.179.2.32
+++ cust_pkg.pm	18 Aug 2011 23:39:43 -0000	1.179.2.33
@@ -3012,11 +3012,13 @@
          } @report_option;
   }
 
+  foreach my $any ( grep /^report_option_any/ keys %$params ) {
+
   my @report_option_any = ();
-  if ( exists($params->{'report_option_any'}) ) {
-    if ( ref($params->{'report_option_any'}) eq 'ARRAY' ) {
-      @report_option_any = @{ $params->{'report_option_any'} };
-    } elsif ( $params->{'report_option_any'} =~ /^([,\d]*)$/ ) {
+    if ( exists($params->{$any}) ) {
+      if ( ref($params->{$any}) eq 'ARRAY' ) {
+        @report_option_any = @{ $params->{$any} };
+      } elsif ( $params->{$any} =~ /^([,\d]*)$/ ) {
       @report_option_any = split(',', $1);
     }
 
@@ -3033,6 +3035,8 @@
     ). ' ) ';
   }
 
+  }
+
   ###
   # parse custom
   ###



More information about the freeside-commits mailing list