From 346b3374e1f841851df1bbc8ec6fc90c1e9584c6 Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Mon, 31 Oct 2022 07:20:18 -0400 Subject: [PATCH] Bug 24860: (QA follow-up): Don't assume item group is set for all items Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- circ/pendingreserves.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/pendingreserves.pl b/circ/pendingreserves.pl index 5019e0c50c..07df53bc3c 100755 --- a/circ/pendingreserves.pl +++ b/circ/pendingreserves.pl @@ -285,7 +285,7 @@ foreach my $bibnum ( @biblionumbers ){ } if ( $res_info->item_group ) { - $hold_info->{barcodes} = [ uniq map { defined $_->barcode && $_->item_group->id == $res_info->item_group_id ? $_->barcode : () } @$items ]; + $hold_info->{barcodes} = [ uniq map { defined $_->barcode && $_->item_group && ( $_->item_group->id == $res_info->item_group_id ) ? $_->barcode : () } @$items ]; } # items available -- 2.39.5