From e410bbb59ab514aedde566c16d44c94b362a977a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 23 Nov 2020 15:49:35 +0100 Subject: [PATCH] Bug 27071: Fix Hold pickup library when using hold groups Signed-off-by: Tomas Cohen Arazi Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- Koha/Library.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Koha/Library.pm b/Koha/Library.pm index fc2f4f522e..62ec4ec49c 100644 --- a/Koha/Library.pm +++ b/Koha/Library.pm @@ -247,10 +247,10 @@ sub validate_hold_sibling { foreach (@hold_libraries) { my $hold_library = $_; - my $is_valid = 1; + my $is_valid = 0; foreach my $key (keys %$params) { - unless($hold_library->$key eq $params->{$key}) { - $is_valid=0; + if ($hold_library->$key eq $params->{$key}) { + $is_valid=1; last; } } -- 2.20.1