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

(-)a/Koha/SearchFilter.pm (-3 / +2 lines)
Lines 51-57 sub expand_filter { Link Here
51
    my $operands  = $query->{operands};
51
    my $operands  = $query->{operands};
52
    my $indexes   = $query->{indexes};
52
    my $indexes   = $query->{indexes};
53
53
54
    my $query_limit = "(";
54
    my $query_limit = "";
55
    for ( my $i = 0 ; $i < scalar @$operands ; $i++ ) {
55
    for ( my $i = 0 ; $i < scalar @$operands ; $i++ ) {
56
        next unless @$operands[$i];
56
        next unless @$operands[$i];
57
        my $index    = @$indexes[$i] ? @$indexes[$i] . "=" : "";
57
        my $index    = @$indexes[$i] ? @$indexes[$i] . "=" : "";
Lines 62-68 sub expand_filter { Link Here
62
        my $limit = $operator . $index . $query;
62
        my $limit = $operator . $index . $query;
63
        $query_limit .= $limit;
63
        $query_limit .= $limit;
64
    }
64
    }
65
    $query_limit .= ")";
65
    $query_limit = "(" . $query_limit . ")" if $query_limit;
66
66
67
    return ( $limits, $query_limit );
67
    return ( $limits, $query_limit );
68
}
68
}
69
- 

Return to bug 39020