Closed (cannot reproduce)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
exposed filters
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2008 at 03:12 UTC
Updated:
12 Sep 2010 at 17:52 UTC
nothing is optional, although it is checked. I am using search and between values. I have tried to supply between values that are bigger and smaller than any in the database to see if that could have been it - and it didn't change anything. Here's an output of the search query with "optional" checked for search and between price values:
SELECT node.nid AS nid,
node.type AS node_type,
node_data_field_sale_price.field_sale_price_value AS node_data_field_sale_price_field_sale_price_value,
node_data_field_sale_price.nid AS node_data_field_sale_price_nid
FROM node node
LEFT JOIN content_type_mlslisting node_data_field_sale_price ON node.vid = node_data_field_sale_price.vid
WHERE (node.type in ('mlslisting')) AND (node_data_field_sale_price.field_sale_price_value >= 0) AND (node_data_field_sale_price.field_sale_price_value <= 0)
Comments
Comment #1
drewschmaltz commentedNote: When fields have values, the filters are working. Its when an optional field is left blank that still no results are found.
Comment #2
merlinofchaos commentedI'm sorry, you're not being complete or precise enough. I don't understand what your problem is.
Comment #3
drewschmaltz commentedI'm sorry, I'm trying to make this as clear and simple as possible...
The problem arises when "BETWEEN VALUES" is used as an "EXPOSED & OPTIONAL" filter with the operator "LOCKED".
The default values for [min] and [max] are both 0, making the field NOT OPTIONAL. If those fields would assume the "DEFAULT VALUES" when optional - or some other similar solution, then the between values filter will be truly optional.
Comment #4
Coyote commentedI think I'm having a similar problem. I'm not having it with all exposed filters, just search. Here's the issue I raised.
http://drupal.org/node/573234
Comment #5
dawehnerupdate.
Comment #6
esmerel commentedIS this still an issue, it's been around a while with no activity
Comment #7
esmerel commented