I kept getting illogical results when using the '-to Date' filter in a view. After some time, I realized that the behavior was exactly the same as if the '-to Date' filter was really a copy of the '-from Date' filter.
I obtained the same wrong behavior using the '-to Year' filter.
In the file date_views.inc, the declarations for the 'from' and 'to' filters have a different name but are otherwise identical. It seems like this bug would be easy to fix, but I'm not totally clear on the way the views filters work.
Thank you for this awesome module.
Comments
Comment #1
ronan commentedSame problem exists in 4.7.x-1.x-dev (as of 2/28/07). This patch should fix it if applied to date_views.inc. It should apply to the HEAD version too, but I have not tested that.
Ronan
Comment #2
awood456 commentedronan, I've tested your patch in HEAD and it seems okay--EXCEPT for this part, which I don't think is quite right, so I didn't apply it locally:
That part would always cause the 'now' test around line 169 to use the FROM value, regardless which is being requested (based on $type).
Comment #3
karens commentedI think this is partly right, but not yet exactly. I am investigating this.
Comment #4
karens commentedI ended up fixing this differently. Committed to all branches.
Comment #5
(not verified) commentedComment #6
zilverdistel commentedComment #7
karens commentedComment #8
zilverdistel commentedI'm sorry Karen, but could you explain why this is still applicable to the 7.x version when the last relevant comment dates back to March 2007? May it be that some automated script is doing this?
Comment #9
karens commentedIt doesn't matter, it is a closed issue. Some issues automatically keep bumping up to the latest version for reasons I don't even try to figure out.
Comment #10
zilverdistel commentedOk. That's kinda annoying when you search the issue queue ...