From 55e420138ffca933c1405e3e69c08a8d02f96158 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 1 Apr 2022 12:48:54 +0000 Subject: [PATCH] Bug 30432: Specify 'me' for biblionumber when limiting items To test: 1 - Apply only unit tests 2 - prove t/db_dependent/Koha/Holds.t 3 - It fails 4 - Apply this patch 5 - prove t/db_dependent/Koha/Holds.t 6 - It passes! Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Fridolin Somers Signed-off-by: Kyle M Hall --- Koha/Holds.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Holds.pm b/Koha/Holds.pm index 32d9138b37..563a43ba40 100644 --- a/Koha/Holds.pm +++ b/Koha/Holds.pm @@ -118,7 +118,7 @@ sub get_items_that_can_fill { my @biblionumbers = $self->search({ 'me.itemnumber' => undef })->get_column('biblionumber'); my @bibs_or_items; push @bibs_or_items, 'me.itemnumber' => { in => \@itemnumbers } if @itemnumbers; - push @bibs_or_items, 'biblionumber' => { in => \@biblionumbers } if @biblionumbers; + push @bibs_or_items, 'me.biblionumber' => { in => \@biblionumbers } if @biblionumbers; my @branchtransfers = map { $_->itemnumber } Koha::Item::Transfers->search( -- 2.39.5