Lines 64-74
sub filter_by_for_hold {
Link Here
|
64 |
my $default_rule = Koha::CirculationRules->get_effective_rule( |
64 |
my $default_rule = Koha::CirculationRules->get_effective_rule( |
65 |
{ |
65 |
{ |
66 |
rule_name => 'holdallowed', |
66 |
rule_name => 'holdallowed', |
67 |
rule_value => 'not_allowed', |
|
|
68 |
} |
67 |
} |
69 |
); |
68 |
); |
70 |
my @hold_not_allowed_itypes; |
69 |
my @hold_not_allowed_itypes; |
71 |
if ($default_rule) { |
70 |
if ( defined $default_rule && $default_rule->rule_value eq 'not_allowed' ) { |
72 |
@hold_not_allowed_itypes = Koha::ItemTypes->search->get_column('itemtype'); |
71 |
@hold_not_allowed_itypes = Koha::ItemTypes->search->get_column('itemtype'); |
73 |
my @hold_allowed_itypes = Koha::CirculationRules->search( |
72 |
my @hold_allowed_itypes = Koha::CirculationRules->search( |
74 |
{ |
73 |
{ |
75 |
- |
|
|