Closed (fixed)
Project:
Date
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2012 at 17:20 UTC
Updated:
13 Apr 2012 at 07:51 UTC
Jump to comment: Most recent file
Notice happens when adding exposed date filter (between) for the date from field.
| Comment | File | Size | Author |
|---|---|---|---|
| #19 | date-views-select-validate-1464280-18.patch | 759 bytes | geerlingguy |
| #18 | date-views-select-validate-1464280-18.patch | 0 bytes | geerlingguy |
| #14 | date_views.patch | 758 bytes | Georgique |
| #12 | date_views.patch | 715 bytes | Georgique |
| #7 | date_views.patch | 723 bytes | Georgique |
Comments
Comment #1
dealancer commentedHere is a patch. Please review.
Comment #3
rylowry@gmail.com commentedI was looking at another issue (http://drupal.org/node/1425774) where this notice was mentioned. Here is a workaround that got rid of the notice for me, though I'm not sure what caused the original problem.
Comment #4
dealancer commentedThanks for the snippet, it should work. However we would like to have a path.
The problem is when operator is between or between not, we don't have $form['field_your_date_field']['value'], instead we have $form['field_your_date_field']['min'] and $form['field_your_date_field']['max'].
Comment #5
nagiek commentedThe patch in #1 should work. Re-roll it?
Comment #6
Georgique commentedConfiriming issue and subscribe
Comment #7
Georgique commentedComment #8
nagiek commentedSetting bot
Comment #10
Georgique commentedI don't know how to make patches in right format. Just think that my correction in code is right...
Comment #11
dealancer commentedThe first four lines of a patch a bit wrong. It should be
instead of
Comment #12
Georgique commentedFixed patch
Comment #14
Georgique commentedI suggest there should be path to date_views directory. Next try =)
Comment #15
Georgique commentedComment #17
khandra commentedHello all,
in my humble opinion, the patch is not working because there is a missing parenthesis on the last line.
In current file I read:
foreach ($granularity as $part)instead it should be
foreach ($granularity as $part) {hope this helps!
Comment #18
geerlingguy commentedPatches should be against -dev branch, and need to be made against a git checkout, in the root folder of the date module. Read more here: Making patches for Drupal with Git.
Attached updated patch.
Comment #19
geerlingguy commentedWell, it would help if I attached a real patch...
Comment #20
karens commentedI can replicate this. Fixed now. Thanks guys!
http://drupalcode.org/project/date.git/commit/0514a92
Comment #21
laraz commented#19: Thanks. It worked for me.