Bugzilla – Attachment 121873 Details for
Bug 28526
Impossible to search only zero
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28526: (QA follow-up) Don't search if query is blank
Bug-28526-QA-follow-up-Dont-search-if-query-is-bla.patch (text/plain), 1.70 KB, created by
Nick Clemens
on 2021-06-11 17:51:48 UTC
(
hide
)
Description:
Bug 28526: (QA follow-up) Don't search if query is blank
Filename:
MIME Type:
Creator:
Nick Clemens
Created:
2021-06-11 17:51:48 UTC
Size:
1.70 KB
patch
obsolete
>From 8dd37e325c1a8e4c3098f891f1a5587abcb201ef Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 11 Jun 2021 17:50:32 +0000 >Subject: [PATCH] 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> >--- > catalogue/search.pl | 2 +- > opac/opac-search.pl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/catalogue/search.pl b/catalogue/search.pl >index 69ec6c865c..8bd70fc893 100755 >--- a/catalogue/search.pl >+++ b/catalogue/search.pl >@@ -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'; > } >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index e47e6f428b..b03b6d0fbe 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -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 { >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28526
:
121713
|
121723
|
121872
| 121873