From d7f6436290668537e20760ff1c4dbfae76c1a14e Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 15 Aug 2022 12:25:40 +0000 Subject: [PATCH] Bug 29697: (follow-up) Check against itemnumbers for visibility No items are shoing on the opac because we are comparing the itemnumber to an object This patch simplies check against the itemnumber Note: With this the inclusion of host_items it still broken as they won't be in the visible items list Bug 31313 will fix this completely --- opac/opac-detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 06d7044942..7a60e57e29 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -521,7 +521,7 @@ my @items; # Hide items if ( @items_to_show != @all_items ) { for my $itm (@all_items) { - next unless any { $itm->{itemnumber} eq $_ } @items_to_show; + next unless any { $itm->{itemnumber} eq $_->itemnumber } @items_to_show; if ( C4::Context->preference('hidelostitems') ) { push @items, $itm unless $itm->{itemlost}; } -- 2.30.2