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

(-)a/C4/Circulation.pm (-2 / +2 lines)
Lines 2110-2115 sub AddReturn { Link Here
2110
2110
2111
    # the holdingbranch is updated if the document is returned to another location.
2111
    # the holdingbranch is updated if the document is returned to another location.
2112
    # this is always done regardless of whether the item was on loan or not
2112
    # this is always done regardless of whether the item was on loan or not
2113
    my $item_holding_branch = $item->{ holdingbranch };
2113
    if ($item->{'holdingbranch'} ne $branch) {
2114
    if ($item->{'holdingbranch'} ne $branch) {
2114
        UpdateHoldingbranch($branch, $item->{'itemnumber'});
2115
        UpdateHoldingbranch($branch, $item->{'itemnumber'});
2115
        $item->{'holdingbranch'} = $branch; # update item data holdingbranch too
2116
        $item->{'holdingbranch'} = $branch; # update item data holdingbranch too
Lines 2149-2155 sub AddReturn { Link Here
2149
                    {
2150
                    {
2150
                        current_branch      => C4::Context->userenv->{branch},
2151
                        current_branch      => C4::Context->userenv->{branch},
2151
                        item_home_branch    => $item->{homebranch},
2152
                        item_home_branch    => $item->{homebranch},
2152
                        item_holding_branch => $item->{holdingbranch}
2153
                        item_holding_branch => $item_holding_branch
2153
                    }
2154
                    }
2154
                )
2155
                )
2155
              )
2156
              )
2156
- 

Return to bug 14048