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

(-)a/Koha/Item.pm (-1 / +1 lines)
Lines 1955-1961 sub can_be_waiting_recall { Link Here
1955
    # Check the circulation rule for each relevant itemtype for this item
1955
    # Check the circulation rule for each relevant itemtype for this item
1956
    my $rule = Koha::CirculationRules->get_effective_rules({
1956
    my $rule = Koha::CirculationRules->get_effective_rules({
1957
        branchcode => $branchcode,
1957
        branchcode => $branchcode,
1958
        categorycode => undef,
1958
        categorycode => $self->check_recalls ? $self->check_recalls->patron->categorycode : undef,
1959
        itemtype => $self->effective_itemtype,
1959
        itemtype => $self->effective_itemtype,
1960
        rules => [
1960
        rules => [
1961
            'recalls_allowed',
1961
            'recalls_allowed',
(-)a/t/db_dependent/Koha/Item.t (-5 / +4 lines)
Lines 1705-1712 subtest 'Recalls tests' => sub { Link Here
1705
    # Patron2 has Item1 checked out. Patron1 has placed a biblio-level recall on Biblio1, so check if Item1 can fulfill Patron1's recall.
1705
    # Patron2 has Item1 checked out. Patron1 has placed a biblio-level recall on Biblio1, so check if Item1 can fulfill Patron1's recall.
1706
1706
1707
    Koha::CirculationRules->set_rules({
1707
    Koha::CirculationRules->set_rules({
1708
        branchcode => undef,
1708
        branchcode => $branchcode,
1709
        categorycode => undef,
1709
        categorycode => $patron1->categorycode,
1710
        itemtype => $item1->effective_itemtype,
1710
        itemtype => $item1->effective_itemtype,
1711
        rules => {
1711
        rules => {
1712
            recalls_allowed => 0,
1712
            recalls_allowed => 0,
Lines 1717-1724 subtest 'Recalls tests' => sub { Link Here
1717
    is( $item1->can_be_waiting_recall, 0, "Recalls not allowed for this itemtype" );
1717
    is( $item1->can_be_waiting_recall, 0, "Recalls not allowed for this itemtype" );
1718
1718
1719
    Koha::CirculationRules->set_rules({
1719
    Koha::CirculationRules->set_rules({
1720
        branchcode => undef,
1720
        branchcode => $branchcode,
1721
        categorycode => undef,
1721
        categorycode => $patron1->categorycode,
1722
        itemtype => $item1->effective_itemtype,
1722
        itemtype => $item1->effective_itemtype,
1723
        rules => {
1723
        rules => {
1724
            recalls_allowed => 1,
1724
            recalls_allowed => 1,
1725
- 

Return to bug 32129