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

(-)a/Koha/Holds.pm (-2 / +12 lines)
Lines 114-120 sub get_items_that_can_fill { Link Here
114
          }
114
          }
115
      );
115
      );
116
116
117
    return Koha::Items->search(
117
    my @hold_not_allowed_itypes = Koha::CirculationRules->search(
118
        {
119
            rule_name    => 'holdallowed',
120
            branchcode   => undef,
121
            categorycode => undef,
122
            rule_value   => 0,
123
        }
124
    )->get_column('itemtype');
125
126
    my $items = Koha::Items->search(
118
        {
127
        {
119
            biblionumber => { in => \@biblionumbers },
128
            biblionumber => { in => \@biblionumbers },
120
            itemlost     => 0,
129
            itemlost     => 0,
Lines 122-129 sub get_items_that_can_fill { Link Here
122
            notforloan   => 0,
131
            notforloan   => 0,
123
            onloan       => undef,
132
            onloan       => undef,
124
            itemnumber   => { -not_in => [ @branchtransfers, @waiting_holds ] },
133
            itemnumber   => { -not_in => [ @branchtransfers, @waiting_holds ] },
134
            itype        => { -not_in => \@hold_not_allowed_itypes },
125
        }
135
        }
126
    );
136
    );
137
127
}
138
}
128
139
129
=head3 type
140
=head3 type
130
- 

Return to bug 27718