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

(-)a/Koha/CirculationRules.pm (-2 / +2 lines)
Lines 439-446 sub get_lostreturn_policy { Link Here
439
439
440
    my $behaviour = C4::Context->preference( 'RefundLostOnReturnControl' ) // 'CheckinLibrary';
440
    my $behaviour = C4::Context->preference( 'RefundLostOnReturnControl' ) // 'CheckinLibrary';
441
    my $behaviour_mapping = {
441
    my $behaviour_mapping = {
442
           CheckinLibrary => $params->{'return_branch'},
442
        CheckinLibrary    => $params->{'return_branch'} // $item->homebranch,
443
           ItemHomeBranch => $item->homebranch,
443
        ItemHomeBranch    => $item->homebranch,
444
        ItemHoldingBranch => $item->holdingbranch
444
        ItemHoldingBranch => $item->holdingbranch
445
    };
445
    };
446
446
(-)a/Koha/Item.pm (-3 / +4 lines)
Lines 811-818 sub _set_found_trigger { Link Here
811
    return $self
811
    return $self
812
      unless Koha::CirculationRules->get_lostreturn_policy(
812
      unless Koha::CirculationRules->get_lostreturn_policy(
813
        {
813
        {
814
            current_branch => C4::Context->userenv->{branch},
814
            item          => $self,
815
            item           => $self,
815
            return_branch => C4::Context->userenv
816
            ? C4::Context->userenv->{'branch'}
817
            : undef,
816
        }
818
        }
817
      );
819
      );
818
820
819
- 

Return to bug 18501