From 07be7ce49b0cdfe72d70bbc2489c636b62d158b3 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 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 --- .../prog/en/modules/catalogue/advsearch.tt | 13 ++++++++++++- .../bootstrap/en/modules/opac-advsearch.tt | 8 ++++++++ 2 files changed, 20 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 9eb252d68b..3d8f39dc90 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 @@
-
+