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
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches