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.
I've got a view with an exposed filter on a decimal cck field. If I enter 2.9 in the form, it treats it as if I entered 2.0.
For example:
- http://www.ssrealty.com/buyers
- Enter 2.9 in the Min Land Area field, and Apply.
- You'll see a bunch of items in the table with a Land Area of 2.0 acres.
The error is apparent in the generated sql (from the views admin page):
SELECT node.nid AS nid, ...
WHERE ... AND (node_data_field_land_area.field_land_area_value >= 2)
ORDER BY ...
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedyched, KarenS -- is Views doing this? or is CCK using the wrong filter handler here?
Comment #2
yched CreditAttribution: yched commentedTry upgrading to latest CCK-dev, I think we fixed that.
Please reopen if not.
Comment #3
sprugman CreditAttribution: sprugman commentedupgrading cck seems to have fixed it, thanks.