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

(-)a/C4/Circulation.pm (-3 lines)
Lines 2176-2183 sub MarkIssueReturned { Link Here
2176
        # Create the old_issues entry
2176
        # Create the old_issues entry
2177
        my $old_checkout = Koha::OldIssue->new($issue->unblessed)->store;
2177
        my $old_checkout = Koha::OldIssue->new($issue->unblessed)->store;
2178
2178
2179
        $dbh->do(q|INSERT INTO old_issues SELECT * FROM issues WHERE issue_id = ?|, undef, $issue_id);
2180
2181
        # anonymise patron checkout immediately if $privacy set to 2 and AnonymousPatron is set to a valid borrowernumber
2179
        # anonymise patron checkout immediately if $privacy set to 2 and AnonymousPatron is set to a valid borrowernumber
2182
        if ( $privacy == 2) {
2180
        if ( $privacy == 2) {
2183
            $dbh->do(q|UPDATE old_issues SET borrowernumber=? WHERE issue_id = ?|, undef, $anonymouspatron, $issue_id);
2181
            $dbh->do(q|UPDATE old_issues SET borrowernumber=? WHERE issue_id = ?|, undef, $anonymouspatron, $issue_id);
2184
- 

Return to bug 18966