From 71870530db13751285b145b8b7cbe6cb91288de2 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 Content-Type: text/plain; charset="utf-8" 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 files changed, 1 insertions(+), 1 deletions(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 8de6d37..65e420a 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -371,7 +371,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'}; -- 1.5.6.3