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

(-)a/Koha/CirculationRules.pm (-4 / +3 lines)
Lines 302-312 sub get_effective_rule { Link Here
302
    my $itemtype_obj = Koha::ItemTypes->find($itemtype);
302
    my $itemtype_obj = Koha::ItemTypes->find($itemtype);
303
    return $rule unless $itemtype_obj;
303
    return $rule unless $itemtype_obj;
304
304
305
    my $parent = $itemtype_obj->parent;
305
    my $parent_type = $itemtype_obj->parent_type;
306
    return $rule unless $parent;
306
    return $rule unless $parent_type;
307
307
308
    my $parent_search = {%$search_params};
308
    my $parent_search = {%$search_params};
309
    $parent_search->{itemtype} = [ $parent->itemtype, undef ];
309
    $parent_search->{itemtype} = [ $parent_type, undef ];
310
310
311
    my $parent_rule = $self->search(
311
    my $parent_rule = $self->search(
312
        $parent_search,
312
        $parent_search,
313
- 

Return to bug 41917