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

(-)a/C4/Circulation.pm (-1 / +5 lines)
Lines 2650-2655 sub MarkIssueReturned { Link Here
2650
        # Create the old_issues entry
2650
        # Create the old_issues entry
2651
        my $old_checkout = Koha::Old::Checkout->new($issue->unblessed)->store;
2651
        my $old_checkout = Koha::Old::Checkout->new($issue->unblessed)->store;
2652
2652
2653
        # Update accountlines
2654
        my $accountlines =
2655
          Koha::Account::Lines->search( { issue_id => $issue->issue_id } );
2656
        $accountlines->update({ old_issue_id => $issue->issue_id, issue_id => undef });
2657
2653
        # anonymise patron checkout immediately if $privacy set to 2 and AnonymousPatron is set to a valid borrowernumber
2658
        # anonymise patron checkout immediately if $privacy set to 2 and AnonymousPatron is set to a valid borrowernumber
2654
        if ( $privacy && $privacy == 2) {
2659
        if ( $privacy && $privacy == 2) {
2655
            $old_checkout->anonymize;
2660
            $old_checkout->anonymize;
2656
- 

Return to bug 22421