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

(-)a/Koha/Items.pm (-4 / +5 lines)
Lines 61-74 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(
64
    my $default_rule = Koha::CirculationRules->get_effective_rule_value(
65
        {
65
        {
66
            rule_name    => 'holdallowed',
66
            rule_name    => 'holdallowed',
67
            rule_value   => 'not_allowed',
67
            itemtype     => undef,
68
            branchcode   => undef,
69
            categorycode => undef,
68
        }
70
        }
69
    );
71
    );
70
    my @hold_not_allowed_itypes;
72
    my @hold_not_allowed_itypes;
71
    if ($default_rule) {
73
    if ($default_rule eq 'not_allowed') {
72
        @hold_not_allowed_itypes = Koha::ItemTypes->search->get_column('itemtype');
74
        @hold_not_allowed_itypes = Koha::ItemTypes->search->get_column('itemtype');
73
        my @hold_allowed_itypes = Koha::CirculationRules->search(
75
        my @hold_allowed_itypes = Koha::CirculationRules->search(
74
            {
76
            {
75
- 

Return to bug 38148