From 31e145f23c9a731e2b848f07bcca3daa1c282440 Mon Sep 17 00:00:00 2001 From: Mason James Date: Fri, 28 Jul 2017 01:38:45 +1200 Subject: [PATCH] [16.11.x] Bug 18966: fix unneeded INSERT in AddReturn() Content-Type: text/plain; charset="utf-8" --- C4/Circulation.pm | 2 -- 1 file changed, 2 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index f618c04..77055d6 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2176,8 +2176,6 @@ sub MarkIssueReturned { # Create the old_issues entry my $old_checkout = Koha::OldIssue->new($issue->unblessed)->store; - $dbh->do(q|INSERT INTO old_issues SELECT * FROM issues WHERE issue_id = ?|, undef, $issue_id); - # anonymise patron checkout immediately if $privacy set to 2 and AnonymousPatron is set to a valid borrowernumber if ( $privacy == 2) { $dbh->do(q|UPDATE old_issues SET borrowernumber=? WHERE issue_id = ?|, undef, $anonymouspatron, $issue_id); -- 2.1.4