From 08dea22ccc4f7b53b619524ad7c28ac69b42cba8 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 (cherry picked from commit b08928b65bb7b4663f8022c4668fd720ad852aa6) Signed-off-by: Andrew Fuerste-Henry --- Koha/Library.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Koha/Library.pm b/Koha/Library.pm index d1e671a017..f1f910e366 100644 --- a/Koha/Library.pm +++ b/Koha/Library.pm @@ -178,10 +178,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