[Koha-patches] [PATCH 3/7] cosmetic fix - use $itemnumber as argument to GetItems when available
Galen Charlton
gmcharlt at gmail.com
Sun Aug 23 19:07:02 CEST 2009
Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
---
circ/returns.pl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/circ/returns.pl b/circ/returns.pl
index cadfc7d..40eeed1 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'} );
}
--
1.6.3.3
More information about the Koha-patches
mailing list