From cc7ed4c4401c52ca00b7cfdca07f071c19f71fbb Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 4 May 2021 12:18:40 +0200 Subject: [PATCH] But 18989: Restore hidding items on detail --- opac/opac-detail.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index e2ea7e709e3..6173b728622 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.20.1