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

(-)a/C4/Circulation.pm (-1 / +5 lines)
Lines 2639-2644 sub MarkIssueReturned { Link Here
2639
        # Create the old_issues entry
2639
        # Create the old_issues entry
2640
        my $old_checkout = Koha::Old::Checkout->new($issue->unblessed)->store;
2640
        my $old_checkout = Koha::Old::Checkout->new($issue->unblessed)->store;
2641
2641
2642
        # Update accountlines
2643
        my $accountlines =
2644
          Koha::Account::Lines->search( { issue_id => $issue->issue_id } );
2645
        $accountlines->update({ old_issue_id => $issue->issue_id, issue_id => undef });
2646
2642
        # anonymise patron checkout immediately if $privacy set to 2 and AnonymousPatron is set to a valid borrowernumber
2647
        # anonymise patron checkout immediately if $privacy set to 2 and AnonymousPatron is set to a valid borrowernumber
2643
        if ( $privacy && $privacy == 2) {
2648
        if ( $privacy && $privacy == 2) {
2644
            $old_checkout->anonymize;
2649
            $old_checkout->anonymize;
2645
- 

Return to bug 22421