X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcdr.html;h=d1f68c5c67f8244fb48d07df02952c332ea2c31b;hb=1080ae07385ed313d3a72c12869d7d0b84136504;hp=ceee6f2fdbe1b56708fa3dfbdaa02040eb115249;hpb=7a62aaba31a74ee3dd5e3b77907aa6f06687608d;p=freeside.git diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index ceee6f2fd..d1f68c5c6 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -194,6 +194,23 @@ if ( $cgi->param('cdrbatch') ne '__ALL__' ) { } ### +# acctid +### + +if ( $cgi->param('acctid') =~ /\d/ ) { + my $acctid = $cgi->param('acctid'); + $acctid =~ s/\r\n/\n/g; #browsers? + my @acctid = map { /^\s*(\d+)\s*$/ or die "guru meditation #4"; $1; } + grep { /^\s*(\d+)\s*$/ } + split(/\n/, $acctid); + if ( @acctid ) { + my $search = 'acctid IN ( '. join(',', @acctid). ' )'; + push @qsearch, $search; + push @search, $search; + } +} + +### # finish it up ###