diff --git a/Koha/Patron.pm b/Koha/Patron.pm index d9f08197d4..f849510a66 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -876,7 +876,7 @@ sub do_check_for_previous_checkout { # Create (old)issues search criteria my $criteria = { borrowernumber => $self->borrowernumber, - itemnumber => \@item_nos, + itemnumber => { -in => \@item_nos }, }; # Check current issues table