From 074943e5df203d21cc599b6e48258a6c6f15f0e2 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Mon, 28 Jul 2025 14:04:58 +0200 Subject: [PATCH] Bug 38666: Fix DBI error in pendingreserves.pl Error was: Column 'itemnumber' in WHERE is ambiguous --- Koha/Holds.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Holds.pm b/Koha/Holds.pm index c3b96e4f32a..64c229cadbe 100644 --- a/Koha/Holds.pm +++ b/Koha/Holds.pm @@ -166,7 +166,7 @@ sub get_items_that_can_fill { return Koha::Items->search( { -or => \@bibs_or_items, - itemnumber => { -not_in => [ @branchtransfers, @waiting_holds ] }, + 'me.itemnumber' => { -not_in => [ @branchtransfers, @waiting_holds ] }, onloan => undef, notforloan => 0, is_closed_stack => 0, -- 2.47.3