I've created a view and I have a few exposed filters, one of which is a daterange on a cck date field.
Everything works properly, until I enter a daterange (or choose one of the options like within the past year).
Once I try to filter by that date in anyway, it goes whacky. It still works properly, except it lists all of the nodes AND their revisions.

In other words I have 1 node with a date in this past week. I've edited that node 3 times, so there are 3 revisions. When I chose "whithin the past week" in the exposed filter I get 1 node repeated 3 times. If I edit that node again and create another revision, I get 4 in the view. And so on.

I don't see why this is searching the revisions. Any help here would be great. Thanks.

CommentFileSizeAuthor
#1 216830.patch903 bytesdouggreen

Comments

douggreen’s picture

Status: Active » Needs review
StatusFileSize
new903 bytes

Please try the attached patch, and let me know if it fixes the problem. Thanks!

Gidgidonihah’s picture

Quick testing looks like that did the trick. Thanks for the quick response.

Also, applying the patch did return this:
Hunk #1 succeeded at 340 with fuzz 1 (offset -31 lines).

douggreen’s picture

Status: Needs review » Fixed

Committed, Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.