cosmetic fix - use $itemnumber as argument to GetItems when available
authorGalen Charlton <gmcharlt@gmail.com>
Sun, 23 Aug 2009 16:48:34 +0000 (12:48 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Sun, 23 Aug 2009 17:07:32 +0000 (13:07 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
circ/returns.pl

index cadfc7d..40eeed1 100755 (executable)
@@ -180,7 +180,7 @@ if ($barcode) {
     $itemnumber = GetItemnumberFromBarcode($barcode);
 
     if ( C4::Context->preference("InProcessingToShelvingCart") ) {
-        my $item = GetItem( '', $barcode );
+        my $item = GetItem( $itemnumber );
         if ( $item->{'location'} eq 'PROC' ) {
             $item->{'location'} = 'CART';
             ModItem( $item, $item->{'biblionumber'}, $item->{'itemnumber'} );
@@ -188,7 +188,7 @@ if ($barcode) {
     }
 
     if ( C4::Context->preference("ReturnToShelvingCart") ) {
-        my $item = GetItem( '', $barcode );
+        my $item = GetItem( $itemnumber );
         $item->{'location'} = 'CART';
         ModItem( $item, $item->{'biblionumber'}, $item->{'itemnumber'} );
     }