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

(-)a/Koha/Item.pm (-1 / +1 lines)
Lines 1949-1955 sub can_be_waiting_recall { Link Here
1949
    # Check the circulation rule for each relevant itemtype for this item
1949
    # Check the circulation rule for each relevant itemtype for this item
1950
    my $rule = Koha::CirculationRules->get_effective_rules({
1950
    my $rule = Koha::CirculationRules->get_effective_rules({
1951
        branchcode => $branchcode,
1951
        branchcode => $branchcode,
1952
        categorycode => undef,
1952
        categorycode => $self->check_recalls ? $self->check_recalls->patron->categorycode : undef,
1953
        itemtype => $self->effective_itemtype,
1953
        itemtype => $self->effective_itemtype,
1954
        rules => [
1954
        rules => [
1955
            'recalls_allowed',
1955
            'recalls_allowed',
(-)a/t/db_dependent/Koha/Item.t (-5 / +4 lines)
Lines 1639-1646 subtest 'Recalls tests' => sub { Link Here
1639
    # Patron2 has Item1 checked out. Patron1 has placed a biblio-level recall on Biblio1, so check if Item1 can fulfill Patron1's recall.
1639
    # Patron2 has Item1 checked out. Patron1 has placed a biblio-level recall on Biblio1, so check if Item1 can fulfill Patron1's recall.
1640
1640
1641
    Koha::CirculationRules->set_rules({
1641
    Koha::CirculationRules->set_rules({
1642
        branchcode => undef,
1642
        branchcode => $branchcode,
1643
        categorycode => undef,
1643
        categorycode => $patron1->categorycode,
1644
        itemtype => $item1->effective_itemtype,
1644
        itemtype => $item1->effective_itemtype,
1645
        rules => {
1645
        rules => {
1646
            recalls_allowed => 0,
1646
            recalls_allowed => 0,
Lines 1651-1658 subtest 'Recalls tests' => sub { Link Here
1651
    is( $item1->can_be_waiting_recall, 0, "Recalls not allowed for this itemtype" );
1651
    is( $item1->can_be_waiting_recall, 0, "Recalls not allowed for this itemtype" );
1652
1652
1653
    Koha::CirculationRules->set_rules({
1653
    Koha::CirculationRules->set_rules({
1654
        branchcode => undef,
1654
        branchcode => $branchcode,
1655
        categorycode => undef,
1655
        categorycode => $patron1->categorycode,
1656
        itemtype => $item1->effective_itemtype,
1656
        itemtype => $item1->effective_itemtype,
1657
        rules => {
1657
        rules => {
1658
            recalls_allowed => 1,
1658
            recalls_allowed => 1,
1659
- 

Return to bug 32129