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

(-)a/C4/Search.pm (-2 / +1 lines)
Lines 1477-1483 sub buildQuery { Link Here
1477
        if ( @limits ) {
1477
        if ( @limits ) {
1478
            if ( grep { /^available$/ } @limits ) {
1478
            if ( grep { /^available$/ } @limits ) {
1479
                $q .= q| and ( (allrecords,AlwaysMatches='') and (not-onloan-count,st-numeric >= 1) and (lost,st-numeric=0) )|;
1479
                $q .= q| and ( (allrecords,AlwaysMatches='') and (not-onloan-count,st-numeric >= 1) and (lost,st-numeric=0) )|;
1480
                delete $limits['available'];
1480
                @limits = grep {!/^available$/} @limits;
1481
            }
1481
            }
1482
            $q .= ' and '.join(' and ', @limits) if @limits;
1482
            $q .= ' and '.join(' and ', @limits) if @limits;
1483
        }
1483
        }
1484
- 

Return to bug 24367