From e12641c8452590f94940143b996d4fdc17ae8037 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 7 Aug 2020 14:50:15 +0200 Subject: [PATCH] Bug 7607: Fix adv search when leaving fields empty Content-Type: text/plain; charset=utf-8 We have a rewrite rule in our apache config that remove empty parameters: RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*) That causes the advanced search to search on the wrong index if an input field is left empty. Test plan (staff and OPAC): - leave the first pulldown on keyword and the search term empty - select author or title from the second pull down and enter a search term Signed-off-by: David Nind Signed-off-by: Marcel de Rooy --- .../intranet-tmpl/prog/en/modules/catalogue/advsearch.tt | 12 +++++++++++- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 8 ++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt index 673aa2d7c9..b993cd0859 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt @@ -34,7 +34,7 @@
-
+