combine ticket notification scrips, #15353
[freeside.git] / httemplate / search / 477partIA_detail.html
index e4a59de..2eca107 100755 (executable)
@@ -23,10 +23,12 @@ die "access denied"
 my %opt = @_;
 my %search_hash = ();
   
-for ( qw(agentnum magic classnum) ) {
+for ( qw(agentnum magic) ) {
   $search_hash{$_} = $cgi->param($_) if $cgi->param($_);
 }
 
+$search_hash{'classnum'} = [ $cgi->param('classnum') ];
+
 my @column_option = grep { /^\d+/ } $cgi->param('part1_column_option')
   if $cgi->param('part1_column_option');
 
@@ -94,7 +96,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 {