[freeside-commits] freeside/httemplate/search 477partVI_census.html, 1.3.2.5, 1.3.2.6

Ivan,,, ivan at wavetail.420.am
Thu Aug 18 15:33:31 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv6767

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	477partVI_census.html 
Log Message:
fix 477 package links report_option arg, RT#13922

Index: 477partVI_census.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/477partVI_census.html,v
retrieving revision 1.3.2.5
retrieving revision 1.3.2.6
diff -u -w -d -r1.3.2.5 -r1.3.2.6
--- 477partVI_census.html	18 Aug 2011 21:27:52 -0000	1.3.2.5
+++ 477partVI_census.html	18 Aug 2011 22:33:29 -0000	1.3.2.6
@@ -144,10 +144,11 @@
 
 my $link_suffix = sub { my $row = shift;
                         my $result = 'censustract='. $row->censustract. ';';
-                        $result .= 'report_option='. @row_option[$row->upload - 1]
-                          if @row_option[$row->upload - 1];
-                        $result .= 'report_option='. @column_option[$row->download - 1]
-                          if @column_option[$row->download - 1];
+                        my @ro = grep $_,
+                          @row_option[$row->upload - 1],
+                          @column_option[$row->download - 1],
+                        ;
+                        $result .= 'report_option='. join(',', at ro) if @ro;
                         $result;
                       };
 



More information about the freeside-commits mailing list