summaryrefslogtreecommitdiff
path: root/httemplate/search/cdr.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/search/cdr.html')
-rw-r--r--httemplate/search/cdr.html17
1 files changed, 17 insertions, 0 deletions
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
###