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

(-)a/C4/Circulation.pm (-1 / +5 lines)
Lines 2153-2158 sub MarkIssueReturned { Link Here
2153
        # Create the old_issues entry
2153
        # Create the old_issues entry
2154
        my $old_checkout = Koha::Old::Checkout->new($issue->unblessed)->store;
2154
        my $old_checkout = Koha::Old::Checkout->new($issue->unblessed)->store;
2155
2155
2156
        # Update accountlines
2157
        my $accountlines =
2158
          Koha::Account::Lines->search( { issue_id => $issue->issue_id } );
2159
        $accountlines->update({ old_issue_id => $issue->issue_id, issue_id => undef });
2160
2156
        # anonymise patron checkout immediately if $privacy set to 2 and AnonymousPatron is set to a valid borrowernumber
2161
        # anonymise patron checkout immediately if $privacy set to 2 and AnonymousPatron is set to a valid borrowernumber
2157
        if ( $privacy == 2) {
2162
        if ( $privacy == 2) {
2158
            $old_checkout->borrowernumber($anonymouspatron)->store;
2163
            $old_checkout->borrowernumber($anonymouspatron)->store;
2159
- 

Return to bug 22421