From fce90f2fb4af1536f774b9840e9e9f9f3b9e5bf4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 15 Mar 2017 09:30:19 -0300 Subject: [PATCH] Bug 18270: Do not fetch the MARC record when deleting an item MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit $record is never used later, the call is superfluous. Test plan: Quick glance at the code should be enough Signed-off-by: Marc VĂ©ron Signed-off-by: Martin Renvoize --- C4/Items.pm | 2 -- 1 file changed, 2 deletions(-) diff --git a/C4/Items.pm b/C4/Items.pm index 8f177b0..82f680e 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -680,8 +680,6 @@ sub DelItem { # FIXME check the item has no current issues my $deleted = _koha_delete_item( $itemnumber ); - # get the MARC record - my $record = GetMarcBiblio($biblionumber); ModZebra( $biblionumber, "specialUpdate", "biblioserver" ); #search item field code -- 2.1.4