I'm using the latest versions of CCK, data and daterange.
I want to make a daterange filter on a cck date field, but when I hit the save button and edit the view again, whatever I entered for "from" and "to" in a custom daterange is lost and the fields are empty again.

It doesn't matter if I use strings like "today-1M" and "today+1M", or fixed date values, its all going to a big black hole ...

The value shown near the fields is always: a:2:{s:5:"date1";s:0:"";s:5:"date2";s:0:"";}
Checking the query in the views_views table, it ends with
LEFT JOIN {content_type_mytype} node_data_field_datum_0 ON node.vid = node_data_field_datum_0.vid WHERE (node.type IN ('rapid_match')) but nothing that tries to actually filter by date (field_datum_0 is the field I'm trying to use the daterange filter on).

If there's anything I can do to help fix this let me know.

Comments

douggreen’s picture

I actually spent quite a bit of time getting this to work. It seems to work for me. See http://drupal5.douggreenconsulting.com/drupal/node/126193, which has an exposed filter with the default range filled in.

It might be related to CCK. I haven't updated CCK in awhile, and CCK when through a round of changes, each of which made previous views incompatible. I'm a little hestitant to update CCK on this site because of this, and because I don't have time to debug it if it causes problems.

ray007’s picture

I have updates most of my modules to the latest versions available, and right now it works.
I guess I won't touch them again if I can avoid it ...

No idea why it wasn't working before, maybe I should clear the cache more often when developing and changing things ;-)

douggreen’s picture

Status: Active » Closed (fixed)