From b08928b65bb7b4663f8022c4668fd720ad852aa6 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 Signed-off-by: Jonathan Druart (cherry picked from commit 4b445425ebaffe4ec4aab3c45cb4ae4f2d4bf172) Signed-off-by: Fridolin Somers --- 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.39.5