Bug 28526: (QA follow-up) Don't search if query is blank
Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
50cc365243
commit
3f6a77d721
|
|
@ -169,7 +169,7 @@ my $cgi = CGI->new;
|
|||
my $template_name;
|
||||
my $template_type;
|
||||
my @params = $cgi->multi_param("limit");
|
||||
if ((@params>=1) || (defined $cgi->param("q")) || ($cgi->param('multibranchlimit')) || ($cgi->param('limit-yr')) ) {
|
||||
if ((@params>=1) || (defined $cgi->param("q") && $cgi->param("q") ne "" ) || ($cgi->param('multibranchlimit')) || ($cgi->param('limit-yr')) ) {
|
||||
$template_name = 'catalogue/results.tt';
|
||||
$template_type = 'results';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ my $format = $cgi->param("format") || '';
|
|||
if ($format =~ /(rss|atom|opensearchdescription)/) {
|
||||
$template_name = 'opac-opensearch.tt';
|
||||
}
|
||||
elsif ((@params>=1) || (defined $cgi->param("q")) || ($cgi->param('multibranchlimit')) || ($cgi->param('limit-yr')) || @searchCategories ) {
|
||||
elsif ((@params>=1) || (defined $cgi->param("q") && $cgi->param("q") ne "") || ($cgi->param('multibranchlimit')) || ($cgi->param('limit-yr')) || @searchCategories ) {
|
||||
$template_name = 'opac-results.tt';
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue