From f14b7df6eccedb8127a37e44c9c7d5b8bb0e2768 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 --- 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.30.2