I'm creating a simple, one table in a database, custom search module. Everything works as it should, all my fields map correctly and I was even able to use hook_views_query_alter() to make sure that date searches returned proper results... Today I noticed that if someone hits the search button without any input, every possible result pops up. How do I make an empty exposed filter return the same as my no results setting?

Comments

ext237’s picture

Hello,  Did you happen to find a fix for this?  I'm looking for similar.  Thanks!

Isaiah Nixon’s picture

I apologize, but I have not. I have just accepted this as the way the view behaves. If you have a specific use case perhaps we can use that to get to the root of the problem.