diff options
Diffstat (limited to 'httemplate/search/cdr.html')
-rw-r--r-- | httemplate/search/cdr.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index 4bac8c1f9..0fa64c00c 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -89,6 +89,20 @@ if ( $cgi->param('charged_party') =~ /^\s*([\d\-\+\ ]+)\s*$/ ) { OR charged_party = '1$charged_party' ) "; } +### +# cdrbatch +### + +if ( $cgi->param('cdrbatch') ne '__ALL__' ) { + if ( $cgi->param('cdrbatch') eq '' ) { + my $search = "( cdrbatch IS NULL OR cdrbatch = '' )"; + push @qsearch, $search; + push @search, $search; + } else { + $hashref->{cdrbatch} = $cgi->param('cdrbatch'); + push @search, 'cdrbatch = '. dbh->quote($cgi->param('cdrbatch')); + } +} ### # finish it up |