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

(-)a/Koha/Holds.pm (-9 / +2 lines)
Lines 134-152 sub get_items_that_can_fill { Link Here
134
            collapse => 1,
134
            collapse => 1,
135
        }
135
        }
136
    )->get_column('itemnumber');
136
    )->get_column('itemnumber');
137
    my @notforloan = Koha::Items->search(
138
        { notforloan => { '!=' => 0 } },
139
        {
140
            columns  => ['itemnumber'],
141
            collapse => 1,
142
        }
143
    )->get_column('itemnumber');
144
137
145
    return Koha::Items->search(
138
    return Koha::Items->search(
146
        {
139
        {
147
            -or => \@bibs_or_items,
140
            -or => \@bibs_or_items,
148
            itemnumber   => { -not_in => [ @branchtransfers, @waiting_holds, @notforloan ] },
141
            itemnumber   => { -not_in => [ @branchtransfers, @waiting_holds ] },
149
            onloan       => undef,
142
            onloan       => undef,
143
            notforloan   => 0, 
150
        }
144
        }
151
    )->filter_by_for_hold();
145
    )->filter_by_for_hold();
152
}
146
}
153
- 

Return to bug 30730