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

(-)a/Koha/Hold.pm (-4 / +2 lines)
Lines 460-474 sub cancellation_requestable_from_opac { Link Here
460
        $controlbranch = $item->homebranch;
460
        $controlbranch = $item->homebranch;
461
    }
461
    }
462
462
463
    my $rule = Koha::CirculationRules->get_effective_rule(
463
    return Koha::CirculationRules->get_effective_rule_value(
464
        {
464
        {
465
            categorycode => $patron->categorycode,
465
            categorycode => $patron->categorycode,
466
            itemtype     => $item->itype,
466
            itemtype     => $item->itype,
467
            branchcode   => $controlbranch,
467
            branchcode   => $controlbranch,
468
            rule_name    => 'waiting_hold_cancellation',
468
            rule_name    => 'waiting_hold_cancellation',
469
        }
469
        }
470
    );
470
    ) ? 1 : 0;
471
    return ( $rule && $rule->rule_value ) ? 1 : 0;
472
}
471
}
473
472
474
=head3 is_at_destination
473
=head3 is_at_destination
475
- 

Return to bug 31303