From 8219d79f5a6d35937a819487f881157260cf768a Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sun, 23 Aug 2009 12:48:34 -0400 Subject: [PATCH] cosmetic fix - use $itemnumber as argument to GetItems when available Signed-off-by: Galen Charlton --- circ/returns.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/circ/returns.pl b/circ/returns.pl index cadfc7d88a..40eeed153f 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -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'} ); } -- 2.39.5