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

(-)a/C4/Circulation.pm (-3 lines)
Lines 2156-2163 sub MarkIssueReturned { Link Here
2156
        # Create the old_issues entry
2156
        # Create the old_issues entry
2157
        my $old_checkout = Koha::OldIssue->new($issue->unblessed)->store;
2157
        my $old_checkout = Koha::OldIssue->new($issue->unblessed)->store;
2158
2158
2159
        $dbh->do(q|INSERT INTO old_issues SELECT * FROM issues WHERE issue_id = ?|, undef, $issue_id);
2160
2161
        # anonymise patron checkout immediately if $privacy set to 2 and AnonymousPatron is set to a valid borrowernumber
2159
        # anonymise patron checkout immediately if $privacy set to 2 and AnonymousPatron is set to a valid borrowernumber
2162
        if ( $privacy == 2) {
2160
        if ( $privacy == 2) {
2163
            $dbh->do(q|UPDATE old_issues SET borrowernumber=? WHERE issue_id = ?|, undef, $anonymouspatron, $issue_id);
2161
            $dbh->do(q|UPDATE old_issues SET borrowernumber=? WHERE issue_id = ?|, undef, $anonymouspatron, $issue_id);
2164
- 

Return to bug 18966