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

(-)a/Koha/Item.pm (-1 / +1 lines)
Lines 1952-1958 sub can_be_waiting_recall { Link Here
1952
    # Check the circulation rule for each relevant itemtype for this item
1952
    # Check the circulation rule for each relevant itemtype for this item
1953
    my $rule = Koha::CirculationRules->get_effective_rules({
1953
    my $rule = Koha::CirculationRules->get_effective_rules({
1954
        branchcode => $branchcode,
1954
        branchcode => $branchcode,
1955
        categorycode => undef,
1955
        categorycode => $self->check_recalls ? $self->check_recalls->patron->categorycode : undef,
1956
        itemtype => $self->effective_itemtype,
1956
        itemtype => $self->effective_itemtype,
1957
        rules => [
1957
        rules => [
1958
            'recalls_allowed',
1958
            'recalls_allowed',
(-)a/t/db_dependent/Koha/Item.t (-5 / +4 lines)
Lines 1712-1719 subtest 'Recalls tests' => sub { Link Here
1712
    # Patron2 has Item1 checked out. Patron1 has placed a biblio-level recall on Biblio1, so check if Item1 can fulfill Patron1's recall.
1712
    # Patron2 has Item1 checked out. Patron1 has placed a biblio-level recall on Biblio1, so check if Item1 can fulfill Patron1's recall.
1713
1713
1714
    Koha::CirculationRules->set_rules({
1714
    Koha::CirculationRules->set_rules({
1715
        branchcode => undef,
1715
        branchcode => $branchcode,
1716
        categorycode => undef,
1716
        categorycode => $patron1->categorycode,
1717
        itemtype => $item1->effective_itemtype,
1717
        itemtype => $item1->effective_itemtype,
1718
        rules => {
1718
        rules => {
1719
            recalls_allowed => 0,
1719
            recalls_allowed => 0,
Lines 1724-1731 subtest 'Recalls tests' => sub { Link Here
1724
    is( $item1->can_be_waiting_recall, 0, "Recalls not allowed for this itemtype" );
1724
    is( $item1->can_be_waiting_recall, 0, "Recalls not allowed for this itemtype" );
1725
1725
1726
    Koha::CirculationRules->set_rules({
1726
    Koha::CirculationRules->set_rules({
1727
        branchcode => undef,
1727
        branchcode => $branchcode,
1728
        categorycode => undef,
1728
        categorycode => $patron1->categorycode,
1729
        itemtype => $item1->effective_itemtype,
1729
        itemtype => $item1->effective_itemtype,
1730
        rules => {
1730
        rules => {
1731
            recalls_allowed => 1,
1731
            recalls_allowed => 1,
1732
- 

Return to bug 32129