diff options
| author | ivan <ivan> | 2012-02-15 05:17:23 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2012-02-15 05:17:23 +0000 |
| commit | 10ce85de67da1dfdabe6236ff79053d206ee8b58 (patch) | |
| tree | f0cf8e02b9a24a61ff10494644e6efea2870f5bf | |
| parent | 7b4fd838d00a9a7ccff26b2f1d6e20c86535acfe (diff) | |
fix 477 VI
| -rwxr-xr-x | httemplate/search/477partVI_census.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/httemplate/search/477partVI_census.html b/httemplate/search/477partVI_census.html index 51baef76f..3883a1c0f 100755 --- a/httemplate/search/477partVI_census.html +++ b/httemplate/search/477partVI_census.html @@ -126,11 +126,13 @@ foreach my $row ( @row_option ) { my $count_query = 'SELECT count(*) FROM ( ('. join( ') UNION ALL (', - map { my $extra = $_->{extra_sql}; my $addl = $_->{addl_from}; - "SELECT censustract from cust_pkg $addl $extra"; - } - @sql_query - ). ') ) AS foo'; + map { my $addl_from = $_->{addl_from}; + my $extra_sql = $_->{extra_sql}; + my $order_by = $_->{order_by}; + "SELECT censustract from cust_pkg $addl_from $extra_sql $order_by"; + } + @sql_query + ). ') ) AS foo'; my $link = 'cust_pkg.cgi?'. join(';', map { my $key = $_; |
