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

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

Return to bug 19317