Check end date

fabio84 - December 24, 2007 - 11:18
Project:Views Date Range Filter
Version:5.x-1.5
Component:Code
Category:feature request
Priority:normal
Assigned:douggreen
Status:needs review
Description

I found strange that this module doesn't check for the "to date" field.

For example, if I have a node with a date field, with "from date" = 20/12/2007 and "to date" = 27/12/2007, and I set a filter on that field with a range from 21/12 to 22/12, that node is not shown.

I wrote a quick and dirty patch for daterange.module, in order to check also the "to date" field. It works for me!

AttachmentSize
fabio84_daterange.diff1.73 KB

#1

fabio84 - December 24, 2007 - 12:53

Sorry, I was too quick.

There was some errors in the old patch, so "before" and "after" didn't work.

This patch should be better

AttachmentSize
fabio84_daterange.diff 1.78 KB

#2

douggreen - December 24, 2007 - 13:52
Assigned to:Anonymous» douggreen

Dates didn't support the "from" and "to" fields when I wrote this module. I think you're on to something, but I'll have to look at your patch a little closer, to make sure this is the way to do it.

 
 

Drupal is a registered trademark of Dries Buytaert.