From 9ebba963ef828b5fa9c175ed1751c5548e32c4b0 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 28 Aug 2018 21:41:26 +0000 Subject: [PATCH] Bug 14715: [FOLLOW-UP] Fix results not showing This fixes the display issue for me. Can someone please test? --- catalogue/search.pl | 5 +---- opac/opac-search.pl | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index dfc3eb9..6d95aeb 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -444,10 +444,7 @@ for (my $ii = 0; $ii < @operands; ++$ii) # Params that can only have one value my $scan = $params->{'scan'}; my $count = C4::Context->preference('numSearchResults') || 20; -my $results_per_page = $count; -if ( C4::Context->preference('numSearchResultsDropdown') ){ - $results_per_page = $params->{'results_per_page'} || $cgi->cookie("results_per_page"); -} +my $results_per_page = $params->{'results_per_page'} || $cgi->cookie("results_per_page") || $count; my $page = $cgi->param('page') || 1; my $offset = $params->{'offset'} || 0; $offset = 0 if $offset < 0; diff --git a/opac/opac-search.pl b/opac/opac-search.pl index c95e774..467b557 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -519,10 +519,7 @@ if ($params->{'limit-yr'}) { my $scan = $params->{'scan'}; my $count = C4::Context->preference('OPACnumSearchResults') || 20; my $countRSS = C4::Context->preference('numSearchRSSResults') || 50; -my $results_per_page = $count; -if ( C4::Context->preference('OPACnumSearchResultsDropdown') ){ - $results_per_page = $params->{'results_per_page'} || $cgi->cookie("results_per_page"); -} +my $results_per_page = $params->{'results_per_page'} || $cgi->cookie("results_per_page") || $count; my $page = $cgi->param('page') || 1; my $offset = $params->{'offset'} || 0; $offset = 0 if $offset < 0; -- 2.1.4