From 9d822839cc723d0cb44d9443f99c6ea33390f41f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 17 Aug 2022 10:16:26 +0200 Subject: [PATCH] Bug 31313: Fix holds_count and priority --- opac/opac-detail.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 9e9c0eadb02..1c5e7949abd 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -682,8 +682,8 @@ if ( not $viewallitems and $items->count > $max_items_to_display ) { else { while ( my $item = $items->next ) { my $item_info = $item->unblessed; - $item->{holds_count} = $item_reserves{ $item->itemnumber }; - $item->{priority} = $priority{ $item->itemnumber }; + $item_info->{holds_count} = $item_reserves{ $item->itemnumber }; + $item_info->{priority} = $priority{ $item->itemnumber }; $allow_onshelf_holds = Koha::CirculationRules->get_onshelfholds_policy( { item => $item, patron => $patron } ) -- 2.25.1