| Comment | File | Size | Author |
|---|---|---|---|
| #11 | interdiff-3129302-3-10.txt | 2.36 KB | mradcliffe |
| #10 | 3129302-10.patch | 2.16 KB | mradcliffe |
| #8 | 3129302-3.patch | 1.48 KB | deffrin |
| #6 | 3129302-after-patch-new-view-output.png | 46.37 KB | mradcliffe |
| #6 | 3129302-after-patch-new-view-filter.png | 43.32 KB | mradcliffe |



Comments
Comment #2
jkevingz commentedI leave the patch I created for this.
Comment #3
jkevingz commentedComment #4
mxmilkiib commentedI just tried applying, but I had already applied https://www.drupal.org/project/date_popup/issues/3042555#comment-13825435 to fix error messages, so this patch fails for me with;
Comment #5
mxmilkiib commentedI manually edited the file with the patch changes and it indeed fixed the display of dates with relative defaults.
Comment #6
mradcliffeI was having trouble getting the date to display in the date popup widget even though the patch was functional on a real site.
However I just tested in DrupalPod and I couldn't reproduce my issue with the patch. The patch applied successfully and worked as desired in the following work flows:
Existing view:
1. Create a new view with the desired relative date in a exposed filter.
2. Apply the patch.
3. Clear cache
4. View has the relative dates converted in the date popup input field and the view is filtered by the dates.
New view:
1. Apply the patch.
2. Create a new view with the desired relative date in a exposed filter.
3. View has the relative dates converted in the date popup input field and the view is filtered by the dates.
Comment #7
mradcliffeI found one issue with the patch.
The "Value Type" radio buttons no longer matter. Regardless of whether I want relative dates or not, it still converts in the actual view.
The change should respect the Value Type setting.
Comment #8
deffrin commentedAdded a condition for checking whether the "Value Type" is equal to offset to the existing patch. Attached the updated patch.
Comment #9
larowlanI'm not keen on this operating by reference, my preference would be to have it return a value and set that on the item.
Can we also add some type-hinting and return-types here.
Comment #10
mradcliffeThis patch should address @larowlan's comments in #9.
I also re-worded some comments for clarity.
Comment #11
mradcliffeComment #12
larowlanThanks, I'll give this another look during my contrib contrib office hours next Wed
Comment #14
larowlanThanks folks
Comment #15
larowlanThis will go out as 8.x-1.2