[freeside-commits] freeside/httemplate/search 477partVI_census.html, 1.3, 1.3.2.1

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


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

Modified Files:
      Tag: FREESIDE_2_3_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.3
retrieving revision 1.3.2.1
diff -u -w -d -r1.3 -r1.3.2.1
--- 477partVI_census.html	25 Apr 2011 04:00:02 -0000	1.3
+++ 477partVI_census.html	17 Aug 2011 21:07:55 -0000	1.3.2.1
@@ -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