From 257a439dafa33d0c642f1ec7badedb5414027e64 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Tue, 10 Mar 2009 15:28:17 +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). Signed-off-by: Galen Charlton --- C4/Reserves.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index da685b9725..c780e32c24 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -362,7 +362,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