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

(-)a/Koha/Items.pm (-2 / +1 lines)
Lines 599-605 sub search { Link Here
599
        }
599
        }
600
        if ( $status eq 'not_for_loan' ) {
600
        if ( $status eq 'not_for_loan' ) {
601
            my @item_types_notforloan = Koha::ItemTypes->search( { notforloan => { '!=' => 0 } } )->get_column('itemtype');
601
            my @item_types_notforloan = Koha::ItemTypes->search( { notforloan => { '!=' => 0 } } )->get_column('itemtype');
602
            $self = $self->search( [ { notforloan => { '>' => 0 } }, { 'me.itype' => \@item_types_notforloan } ] );
602
            $self = $self->search( [ { notforloan => { '!=' => 0 } }, { 'me.itype' => \@item_types_notforloan } ] );
603
        }
603
        }
604
        if ( $status eq 'on_hold' ) {
604
        if ( $status eq 'on_hold' ) {
605
            $self = $self->filter_by_has_holds;
605
            $self = $self->filter_by_has_holds;
606
- 

Return to bug 37334