Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Isaiah Nixon on
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
Hello, Did you happen to
Hello, Did you happen to find a fix for this? I'm looking for similar. Thanks!
~
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.