Bug 19798: Fix print transfer slip
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 19 Dec 2017 18:51:42 +0000 (15:51 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 2 Jan 2018 14:29:17 +0000 (11:29 -0300)
... 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 <bjorn.nylen@ub.lu.se>
Signed-off-by: Björn Nylén <bjorn.nylen@ub.lu.se>
Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

circ/returns.pl

index c69310b..0924da5 100755 (executable)
@@ -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 );