From 4531fa5fc9a8f18dcaae6b1347853e5adbc4c349 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 --- Koha/Holds.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Holds.pm b/Koha/Holds.pm index 5784cd7047..0d062d0620 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 = Koha::Item::Transfers->search( { datearrived => undef }, -- 2.39.5