From 48951c791a376a8a8945c6b9a37ac6bdb3efc3a1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 4 May 2021 12:18:40 +0200 Subject: [PATCH] Bug 18989: Restore hidding items on detail Signed-off-by: Tomas Cohen Arazi Good catch. I forgot this file didn't get the hiding logic refactoring yet. Signed-off-by: Jonathan Druart --- opac/opac-detail.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index e2ea7e709e..6173b72862 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -106,6 +106,10 @@ unless ( $patron and $patron->category->override_hidden_items ) { print $query->redirect('/cgi-bin/koha/errors/404.pl'); # escape early exit; } + if ( scalar @all_items >= 1 ) { + push @hiddenitems, + GetHiddenItemnumbers( { items => \@all_items, borcat => $patron ? $patron->categorycode : undef } ); + } } my $framework = $biblio ? $biblio->frameworkcode : q{}; -- 2.39.5