[freeside-commits] freeside/httemplate/search 477partVI_census.html, 1.2.2.1, 1.2.2.2

Ivan,,, ivan at wavetail.420.am
Wed Aug 17 14:07:58 PDT 2011


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

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	477partVI_census.html 
Log Message:
fix 477 censustract links, RT#13922

Index: 477partVI_census.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/477partVI_census.html,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -u -w -d -r1.2.2.1 -r1.2.2.2
--- 477partVI_census.html	25 Apr 2011 04:00:03 -0000	1.2.2.1
+++ 477partVI_census.html	17 Aug 2011 21:07:56 -0000	1.2.2.2
@@ -130,8 +130,16 @@
           @sql_query
        ). ') ) AS foo';
 
-my $link = 'cust_pkg.cgi?'.
-           join(';', map{ "$_=". $search_hash{$_} } keys %search_hash). ';';
+my $link = 'cust_pkg.cgi?'. join(';',
+                                      map { my $key = $_;
+                                            my @values = ref($search_hash{$_}) 
+                                              ? @{ $search_hash{$_} }
+                                              : $search_hash{$_}
+                                            map { "$key=$_" } @values
+                                          }
+                                          keys %search_hash        
+                                ). ';';
+
 my $link_suffix = sub { my $row = shift;
                         my $result = 'censustract='. $row->censustract. ';';
                         $result .= 'report_option='. @row_option[$row->upload - 1]



More information about the freeside-commits mailing list