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

(-)a/Koha/Items.pm (-2 / +1 lines)
Lines 606-612 sub search { Link Here
606
        if ( $status eq 'not_for_loan' ) {
606
        if ( $status eq 'not_for_loan' ) {
607
            my @item_types_notforloan =
607
            my @item_types_notforloan =
608
                Koha::ItemTypes->search( { notforloan => { '!=' => 0 } } )->get_column('itemtype');
608
                Koha::ItemTypes->search( { notforloan => { '!=' => 0 } } )->get_column('itemtype');
609
            $self = $self->search( [ { notforloan => { '>' => 0 } }, { 'me.itype' => \@item_types_notforloan } ] );
609
            $self = $self->search( [ { notforloan => { '!=' => 0 } }, { 'me.itype' => \@item_types_notforloan } ] );
610
        }
610
        }
611
        if ( $status eq 'on_hold' ) {
611
        if ( $status eq 'on_hold' ) {
612
            $self = $self->filter_by_has_holds;
612
            $self = $self->filter_by_has_holds;
613
- 

Return to bug 37334