From cff50728dbd83a9c8b29cc76654cef3ad1b67186 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 19 Jul 2023 10:51:10 +0100 Subject: [PATCH] Revert "Bug 33497: (follow-up) Adjust relationship name from bug 33493" This reverts commit fa9118ed8daef4f34571fab963b72c8c138a63cb. --- catalogue/detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index af6fc0162d..7f1520c4dc 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','current_branchtransfers'] } ); +my $items = $biblio->items({ host_items => 1 })->search_ordered( $params, { prefetch => ['issue','branchtransfer'] } ); # flag indicating existence of at least one item linked via a host record my $hostrecords = $biblio->host_items->count; -- 2.20.1