X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_main.html;h=b0ce31ae912d75fe5c105f6c3c4e2527e0579cce;hb=7eb4daaa7d76c7195d0bf357a99ccf4ee1962b8a;hp=672c201747fb4ccc7166d233290067c64be0e979;hpb=a4d4d3df88b33a6db30b565921f6d62efb252351;p=freeside.git diff --git a/httemplate/search/cust_main.html b/httemplate/search/cust_main.html index 672c20174..b0ce31ae9 100755 --- a/httemplate/search/cust_main.html +++ b/httemplate/search/cust_main.html @@ -41,7 +41,8 @@ my %search_hash = (); #scalars my @scalars = qw ( - agentnum salesnum status address city county state zip country + agentnum salesnum status + address city county state zip country location_history invoice_terms no_censustract with_geocode with_email tax no_tax POST no_POST custbatch usernum @@ -58,10 +59,17 @@ for my $param ( @scalars ) { } #lists -for my $param (qw( classnum refnum tagnum pkg_classnum )) { +for my $param (qw( classnum refnum pkg_classnum )) { $search_hash{$param} = [ $cgi->param($param) ]; } +#tags +my $params = $cgi->Vars; +$search_hash{'tagnum'} = [ + map { /^tagnum(\d+)/ && $1 } + grep { /^tagnum(\d+)/ && $cgi->param($_) } keys %$params +]; + ### # parse dates ###