From ea62d6e72f8972761a738f34dfc8e70d1e5ca32e Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 22 Jul 2009 09:06:06 -0500 Subject: [PATCH] followup to AddReturn patch - fix test Signed-off-by: Galen Charlton --- C4/Circulation.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 86ba7f154c..80263bc32e 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1422,11 +1422,12 @@ sub AddReturn { $messages->{'BadBarcode'} = $barcode; $doreturn = 0; } else { - if ( not $iteminformation ) { + if ( not %$iteminformation ) { $messages->{'NotIssued'} = $barcode; # even though item is not on loan, it may still # be transferred; therefore, get current branch information - my $curr_iteminfo = GetItem($iteminformation->{'itemnumber'}); + my $curr_iteminfo = GetItem($itemnumber); + $iteminformation->{'itemnumber'} = $curr_iteminfo->{'itemnumber'}; $iteminformation->{'homebranch'} = $curr_iteminfo->{'homebranch'}; $iteminformation->{'holdingbranch'} = $curr_iteminfo->{'holdingbranch'}; $iteminformation->{'itemlost'} = $curr_iteminfo->{'itemlost'}; -- 2.39.5