From e15c81c7b3ea2ffc3650a637c913bd15b9206a67 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 14 Jun 2023 20:17:03 +0000 Subject: Fix main search bug causing AND searches to no longer work The cause of this bug is that, when the autocomplete feature was implemented, it checks the OR search field (in order to save its contents) and only submits the form if it isn't empty. This means that, if the user fills out the AND field and submits the form, nothing happens. I changed it to check both the AND and OR fields (and save both of their contents). While not perfect (since only one field is ever actually used), I figured it's best to just store everything (and there isn't really any way to know which search is intended when both fields are filled). --- wqflask/wqflask/templates/index_page.html | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/wqflask/wqflask/templates/index_page.html b/wqflask/wqflask/templates/index_page.html index 12503326..a9908457 100755 --- a/wqflask/wqflask/templates/index_page.html +++ b/wqflask/wqflask/templates/index_page.html @@ -98,7 +98,7 @@ -
@@ -175,8 +175,8 @@
-
- +
+
@@ -336,15 +336,23 @@