Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
exposed filters
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
24 Jul 2008 at 11:18 UTC
Updated:
16 Apr 2017 at 20:22 UTC
Comments
Comment #1
willeaton commentedSomething very similar... please tell me if not...
When I expose a price filter, I want all listings to be visible unless a user enters a price. I created an exposed filter (optional) which straight away reduced the list to 0 when using the "less than" (because nothing is less than 0). Even if I set a standard with a very high number the initial list is empty unless the user enters a value.
Whatever I do, it does not change "0" in the query...
(node_data_field_price.field_price_value < 0)
Thanks
Will
Comment #2
drewschmaltz commentedI am having a similar problem. The "between values" do not supply "added options to allow it not to be set". Perhaps I've been going about it wrong, but more than likely its tied into this bug report. Default values do nothing for the optional field as well. - it remains required.
EDIT: I should clarify when values are supplied by user, everything works as expected.
Comment #3
merlinofchaos commentedsimonc, I haven't seen this problem, but your fix is definitely not the correct one even if it is. But I am unable to replicate this issue.
Comment #4
willeaton commentedExpose a filter of a cck decimal field for price. Make the exposed field "less than" and enter a default value. Whatever you put in for the default value is ignored in the query generated, it shows instead "< 0"
Comment #5
esmerel commentedUnable to replicate. No updates for more than 30 days.