From b3905762669dc4a6a449da17d784b991639354fa Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 31 May 2023 12:06:20 +0000 Subject: [PATCH] Bug 33497: (follow-up) Adjust relationship name from bug 33493 Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 82d0021cd854787127ffdb42c769919ddb41dcdc) Signed-off-by: Martin Renvoize (cherry picked from commit fa9118ed8daef4f34571fab963b72c8c138a63cb) Signed-off-by: Matt Blenkinsop --- catalogue/detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 7f1520c4dc..af6fc0162d 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -194,7 +194,7 @@ my $all_items = $biblio->items->search_ordered; my @items; my $patron = Koha::Patrons->find( $borrowernumber ); $params->{ itemlost } = 0 if $patron->category->hidelostitems && !$showallitems; -my $items = $biblio->items({ host_items => 1 })->search_ordered( $params, { prefetch => ['issue','branchtransfer'] } ); +my $items = $biblio->items({ host_items => 1 })->search_ordered( $params, { prefetch => ['issue','current_branchtransfers'] } ); # flag indicating existence of at least one item linked via a host record my $hostrecords = $biblio->host_items->count; -- 2.39.5