Bug 31313: Fix holds_count and priority

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-08-17 10:16:26 +02:00 committed by Tomas Cohen Arazi
parent 01091c8089
commit f433875363
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -682,8 +682,8 @@ if ( not $viewallitems and $items->count > $max_items_to_display ) {
else { else {
while ( my $item = $items->next ) { while ( my $item = $items->next ) {
my $item_info = $item->unblessed; my $item_info = $item->unblessed;
$item->{holds_count} = $item_reserves{ $item->itemnumber }; $item_info->{holds_count} = $item_reserves{ $item->itemnumber };
$item->{priority} = $priority{ $item->itemnumber }; $item_info->{priority} = $priority{ $item->itemnumber };
$allow_onshelf_holds = Koha::CirculationRules->get_onshelfholds_policy( $allow_onshelf_holds = Koha::CirculationRules->get_onshelfholds_policy(
{ item => $item, patron => $patron } ) { item => $item, patron => $patron } )