From 983a65c2a0aa9d864b070d96a3635fd8d8d84c2a Mon Sep 17 00:00:00 2001 From: Olli-Antti Kivilahti Date: Mon, 27 Jul 2015 12:55:28 +0300 Subject: [PATCH] Bug 9966 - Incorrect 404 when a search returns one result hidden by OpacHiddenItems This patch disables throwing the 404-error. We should be able to show the opac-detail.pl regardless of hidden items or not. This doesn't fix the availability on opac-search.pl, but gets us out of a very awkward predicatement. TEST PLAN: 1. You can now access opac-detail.pl for Biblios whose ALL Items are hidden by the 'OpacHiddenItems'-syspref. --- opac/opac-detail.pl | 5 ----- 1 file changed, 5 deletions(-) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 0fa588f..50d334f 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -77,11 +77,6 @@ my @all_items = GetItemsInfo($biblionumber); my @hiddenitems; if (scalar @all_items >= 1) { push @hiddenitems, GetHiddenItemnumbers(@all_items); - - if (scalar @hiddenitems == scalar @all_items ) { - print $query->redirect("/cgi-bin/koha/errors/404.pl"); # escape early - exit; - } } my $record = GetMarcBiblio($biblionumber); -- 1.9.1