From 28c3c611ff43313d4072a65afeb389b708103075 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 19 Dec 2017 15:51:42 -0300 Subject: [PATCH] Bug 19798: Fix print transfer slip MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ... and maybe other bugs as well What happens here is that $itemnumber is no longer set when barcode is passed. Test plan: 1. Check in available/not on hold item at a non owning library. 2. Click print slip 3. Item's info must be displayed on the slip Signed-off-by: Björn Nylén Signed-off-by: Björn Nylén Signed-off-by: Jon Knight Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- circ/returns.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/circ/returns.pl b/circ/returns.pl index c69310bc13..0924da5d2f 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -263,6 +263,7 @@ if ($barcode) { my $item = Koha::Items->find({ barcode => $barcode }); if ( $item ) { + $itemnumber = $item->itemnumber; # Check if we should display a checkin message, based on the the item # type of the checked in item my $itemtype = Koha::ItemTypes->find( $item->effective_itemtype ); -- 2.39.5