From: Colin Campbell Date: Tue, 12 Apr 2011 20:43:41 +0000 (+0200) Subject: Bug 6170: Do not prematurely group results X-Git-Tag: v3.04.00~94 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=8b309c66242dcc460191360c9523e0bcb8d2a829;p=koha-ffzg.git Bug 6170: Do not prematurely group results If OPACGroupResults preference was set it was shortcircuiting the template selection logic and we didn't go to the advanced options field Signed-off-by: Katrin Fischer Signed-off-by: Chris Cormack --- diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 778c7ca84f..7531513499 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -66,7 +66,7 @@ my $build_grouped_results = C4::Context->preference('OPACGroupResults'); if ($format =~ /(rss|atom|opensearchdescription)/) { $template_name = 'opac-opensearch.tmpl'; } -elsif ($build_grouped_results) { +elsif (@params && $build_grouped_results) { $template_name = 'opac-results-grouped.tmpl'; } elsif ((@params>=1) || ($cgi->param("q")) || ($cgi->param('multibranchlimit')) || ($cgi->param('limit-yr')) ) {