From bbf490ee4bd6d2d896d414778edf12d2598c7eec 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 --- Koha/Library.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Koha/Library.pm b/Koha/Library.pm index b69fdaaeabf..19cbcb0121e 100644 --- a/Koha/Library.pm +++ b/Koha/Library.pm @@ -244,10 +244,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.30.0