[Koha-patches] [PATCH] (bug #3025) multiple check-in of a multiple times reserved item go wrong
Nahuel ANGELINETTI
nahuel.angelinetti at biblibre.com
Tue Mar 10 15:28:17 CET 2009
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
More information about the Koha-patches
mailing list