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

(-)a/Koha/Holds.pm (-2 / +12 lines)
Lines 131-137 sub get_items_that_can_fill { Link Here
131
          }
131
          }
132
      );
132
      );
133
133
134
    return Koha::Items->search(
134
    my @hold_not_allowed_itypes = Koha::CirculationRules->search(
135
        {
136
            rule_name    => 'holdallowed',
137
            branchcode   => undef,
138
            categorycode => undef,
139
            rule_value   => 0,
140
        }
141
    )->get_column('itemtype');
142
143
    my $items = Koha::Items->search(
135
        {
144
        {
136
            biblionumber => { in => \@biblionumbers },
145
            biblionumber => { in => \@biblionumbers },
137
            itemlost     => 0,
146
            itemlost     => 0,
Lines 139-146 sub get_items_that_can_fill { Link Here
139
            notforloan   => 0,
148
            notforloan   => 0,
140
            onloan       => undef,
149
            onloan       => undef,
141
            itemnumber   => { -not_in => [ @branchtransfers, @waiting_holds ] },
150
            itemnumber   => { -not_in => [ @branchtransfers, @waiting_holds ] },
151
            itype        => { -not_in => \@hold_not_allowed_itypes },
142
        }
152
        }
143
    );
153
    );
154
144
}
155
}
145
156
146
=head3 type
157
=head3 type
147
- 

Return to bug 27718