Bugzilla – Attachment 121723 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: Impossible to search only zero
Bug-28526-Impossible-to-search-only-zero.patch (text/plain), 1.82 KB, created by
Owen Leonard
on 2021-06-08 13:06:11 UTC
(
hide
)
Description:
Bug 28526: Impossible to search only zero
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2021-06-08 13:06:11 UTC
Size:
1.82 KB
patch
obsolete
>From 89d37f1aa0257cc1fe3db388352aebbee00662c3 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Tue, 8 Jun 2021 10:43:34 +0200 >Subject: [PATCH] Bug 28526: Impossible to search only zero > >In staff interface and OPAC, searching only zero leads to advanced search page. > >Test plan : >1) Go to opac home page >2) Enter 0 into search field >=> Without patch you go to advanced search page >=> With patch you go to results page >3) Idem on staff interface > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > 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 9552c39089..69ec6c865c 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) || ($cgi->param("q")) || ($cgi->param('multibranchlimit')) || ($cgi->param('limit-yr')) ) { >+if ((@params>=1) || (defined $cgi->param("q")) || ($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 878d97826f..e47e6f428b 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) || ($cgi->param("q")) || ($cgi->param('multibranchlimit')) || ($cgi->param('limit-yr')) || @searchCategories ) { >+elsif ((@params>=1) || (defined $cgi->param("q")) || ($cgi->param('multibranchlimit')) || ($cgi->param('limit-yr')) || @searchCategories ) { > $template_name = 'opac-results.tt'; > } > else { >-- >2.20.1
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