From 7c6f109844749ab7b0f9ae5e312e9cd71eba1ebe 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=UTF-8 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 --- circ/returns.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/circ/returns.pl b/circ/returns.pl index c69310b..0924da5 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.1.4