From d8d7cbd5c6913591325a20bb2390663195d40ae3 Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Thu, 6 Sep 2012 14:09:40 +0200 Subject: [PATCH] Bug 8462: OpacHiddenItems and hidelostitems hide items, but query result count is off --- C4/Search.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 3edf118..f2f33b6 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1766,10 +1766,7 @@ sub searchResults { } } } # notforloan, item level and biblioitem level - if ($items_count > 0) { - next if $is_opac && $hideatopac_count >= $items_count; - next if $hidelostitems && $itemlost_count >= $items_count; - } + my ( $availableitemscount, $onloanitemscount, $otheritemscount ); for my $key ( sort keys %$onloan_items ) { (++$onloanitemscount > $maxitems) and last; -- 1.7.9.5