update address standardization for cust_location changes
[freeside.git] / httemplate / search / 477partIA_detail.html
index e4a59de..66f3a86 100755 (executable)
@@ -23,9 +23,12 @@ die "access denied"
 my %opt = @_;
 my %search_hash = ();
   
-for ( qw(agentnum magic classnum) ) {
+for ( qw(agentnum magic state) ) {
   $search_hash{$_} = $cgi->param($_) if $cgi->param($_);
 }
+$search_hash{'country'} = 'US';
+
+$search_hash{'classnum'} = [ $cgi->param('classnum') ];
 
 my @column_option = grep { /^\d+/ } $cgi->param('part1_column_option')
   if $cgi->param('part1_column_option');
@@ -94,7 +97,7 @@ my $value = sub {
     my $return = $count;
 
     if ($cgi->param('_type') eq 'xml') {
-      $rowchar++ if $column == 1;
+      $rowchar++ if $column == 0;
       $xml_element = $xml_prefix. chr($rowchar). ($column+1);
       $return = '' if $count == 0 and $cgi->param('_type') eq 'xml';
     } else {