Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2010 at 13:39 UTC
Updated:
25 Aug 2017 at 10:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerupdate
Comment #2
konforti commentedThere was a problem handling dates from 1/1/1970 and earlier.
This patch handle it in a better way.
Comment #3
konforti commentedWhen entering just one value in a two values exposed date filter, it returns no result (before the above patch or all result with the patch). some times you want to filter from some date on or from ever to some date. in this one added this fix which depending on the former code.
Comment #4
YK85 commentedis this related to #681450: Views optional exposed date filter does not work without value?
Comment #5
esmerel commented#843878: Optional "in between" filters not really optional may be related as well. I think they're expressing the same issue, but maybe in different places.
Comment #6
Bevan commentedThis ticket is about date filters for node dates that are supported in views, while #681450: Views optional exposed date filter does not work without value is about CCK Date fields, supported by date module. Though the bugs are very similar, the causes and fixes are entirely unrelated.
Comment #7
merlinofchaos commentedIn Views 3, we need to actually make sure that both of these statements are part of the same add_where() or we run the risk of the between becoming an OR. I realize that's a problem with the existing code but we may as well fix it as part of this patch.
Also, I don't understand why the intval() was split out. There seems to be no benefit to that change.
Comment #8
konforti commentedFixed to implement one add_where() for both statements.
The intval() split out, was made for getting the difference between, the timestamp 0 to FALSE.
The intval() returns 0 in both cases. The IF statements fixed, to make it actually work.
Comment #9
merlinofchaos commentedRemember to mark patch updates as 'needs review' or they don't get seen.
Comment #10
nicholas.alipaz commentedsubscribing since I was affected in a duplicate issue.
Comment #11
merlinofchaos commentedHm. There is a conflict and the patch currently does not apply.
There's also some minor style issues that I was going to clean it manually, but since it doesn't apply I'll kick it back. This has some spacing stuff that I would like cleaned:
It's hard to see since the spaces are invisible, but that's changing a blank line to a line with spaces equal to the indent level of the previous line. Most modern editors can auto-trim trailing spaces for you.
Removing the blank link prior to a function is against my coding style.
Comment #12
konforti commentedOops, sorry.
Re-created the patch with the fixes.
Tested for no conflict on applying.
Thanks.
Comment #13
PixelClever commentedComment #14
mustanggb commented