View | Details | Raw Unified | Return to bug 12478
Collapse All | Expand All

(-)a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm (-3 / +3 lines)
Lines 223-230 sub build_query_compat { Link Here
223
    my $simple_query = $operands->[0] if @$operands == 1;
223
    my $simple_query = $operands->[0] if @$operands == 1;
224
    my $query_desc   = $simple_query;
224
    my $query_desc   = $simple_query;
225
    my $limit        = $self->_join_queries( $self->_convert_index_strings(@$limits));
225
    my $limit        = $self->_join_queries( $self->_convert_index_strings(@$limits));
226
    my $limit_cgi =
226
    my $limit_cgi = ( $orig_limits and @$orig_limits )
227
      '&limit=' . join( '&limit=', map { uri_escape_utf8($_) } @$orig_limits );
227
      ? '&limit=' . join( '&limit=', map { uri_escape_utf8($_) } @$orig_limits )
228
      : '';
228
    my $limit_desc = "$limit" if $limit;
229
    my $limit_desc = "$limit" if $limit;
229
    return (
230
    return (
230
        undef,  $query,     $simple_query, $query_cgi, $query_desc,
231
        undef,  $query,     $simple_query, $query_cgi, $query_desc,
231
- 

Return to bug 12478