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

(-)a/Koha/Items.pm (-6 / +2 lines)
Lines 61-76 placing a hold on one of those items. Link Here
61
sub filter_by_for_hold {
61
sub filter_by_for_hold {
62
    my ($self) = @_;
62
    my ($self) = @_;
63
63
64
    my $default_rule = Koha::CirculationRules->get_effective_rule_value(
64
    my $default_rule = Koha::CirculationRules->get_effective_rule(
65
        {
65
        {
66
            rule_name    => 'holdallowed',
66
            rule_name    => 'holdallowed',
67
            itemtype     => undef,
68
            branchcode   => undef,
69
            categorycode => undef,
70
        }
67
        }
71
    );
68
    );
72
    my @hold_not_allowed_itypes;
69
    my @hold_not_allowed_itypes;
73
    if ($default_rule eq 'not_allowed') {
70
    if ( defined $default_rule && $default_rule->rule_value eq 'not_allowed' ) {
74
        @hold_not_allowed_itypes = Koha::ItemTypes->search->get_column('itemtype');
71
        @hold_not_allowed_itypes = Koha::ItemTypes->search->get_column('itemtype');
75
        my @hold_allowed_itypes = Koha::CirculationRules->search(
72
        my @hold_allowed_itypes = Koha::CirculationRules->search(
76
            {
73
            {
77
- 

Return to bug 38148