Daterange including revisions

Gidgidonihah - February 1, 2008 - 20:37
Project:Views Date Range Filter
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

douggreen - February 2, 2008 - 02:20
Status:active» needs review

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

AttachmentSize
216830.patch 903 bytes

#2

Gidgidonihah - February 4, 2008 - 18:51

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).

#3

douggreen - February 5, 2008 - 01:05
Status:needs review» fixed

Committed, Thanks!

#4

Anonymous (not verified) - February 19, 2008 - 01:11
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.