From 135a0d6e58fcd06bff6a4cd42a0492bf25877bab Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Tue, 10 Mar 2009 15:24:47 +0100 Subject: [PATCH] (bug #3025) multiple check-in of a multiple times reserved item go wrong This patch check that an item is not "Waiting" before do something in GetOtherReserves(because is the item is waiting, we don't need to do something). --- C4/Reserves.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index a1488e5b4a..ebec5e0416 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -356,7 +356,7 @@ sub GetOtherReserves { my $messages; my $nextreservinfo; my ( $restype, $checkreserves ) = CheckReserves($itemnumber); - if ($checkreserves) { + if ($checkreserves and $restype ne "Waiting" ) { my $iteminfo = GetItem($itemnumber); if ( $iteminfo->{'holdingbranch'} ne $checkreserves->{'branchcode'} ) { $messages->{'transfert'} = $checkreserves->{'branchcode'}; -- 2.39.5