From f433875363462b363e688fec6119e596c2457309 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 Signed-off-by: Tomas Cohen Arazi --- 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 9e9c0eadb0..1c5e7949ab 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.39.5