After entering keyword at Search page (i.e. http://example.com/search/node/), when the search is submitted by clicking on the "Search" button, the keyword text field will be emptied and the search request will fail, returning these text in red: Please enter some keywords.

This doesn't happen when searching via the search block on the right sidebar.

CommentFileSizeAuthor
#3 custom-search-bug.png251.36 KBNahk

Comments

darrellgray’s picture

just upgraded to 1.3 from 1.2 and seeing the same problem

jdanthinne’s picture

What do you enter in the right sidebar?
What happens when you submit? What doesn't?
(screenshots welcome)

Nahk’s picture

StatusFileSize
new251.36 KB

I've got exactly the same issue.

When I go to the search page (http://example.com/search/node/, not the search block), and enter some search text in the “Enter your keywords:” field and hit “Search”, I got this message in red : “Please enter some keywords.” and my field is emptied.
This bug only happens if the user got the “use advanced search” permission.

I also figured out that if I type my text in the “Containing any of the words:” field in Advanced search or if I disable this field (with search_config module for example), it works just fine.

Please find a screenshot enclosed.

jdanthinne’s picture

Status: Active » Needs review

Right, found the bug (in the javascript).
Commited the changes to DEV (clear the cache after upgrading to use the new javascript script file).
Please review.

Nahk’s picture

It doesn't seems to work on my site, I've got exactly the same bug. :(
I've tried to clear my browser's cache (on Firefox and Chrome) and Drupal's cache but it doesn't do anything.

jdanthinne’s picture

You have to wait until tomorrow to download the dev version, because it hasn't been regenerated yet…

Nahk’s picture

OK! Thank you for your reactivity! ;)

Edit : It works just fine, thanks ;)

jdanthinne’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.