Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Ran into this bug when I have a filter set up with a different identifier, found out that the problem was with some code inside the date_views_filter_handler_simple where its not accounting for a different identifier.
Comment | File | Size | Author |
---|---|---|---|
#1 | identifier-fix-for-filter-remember-1659466-1.patch | 1.05 KB | artkon |
Comments
Comment #1
artkon CreditAttribution: artkon commentedPatch for 7.x-2.5
Comment #2
artkon CreditAttribution: artkon commentedComment #4
artkon CreditAttribution: artkon commented#1: identifier-fix-for-filter-remember-1659466-1.patch queued for re-testing.
Comment #6
artkon CreditAttribution: artkon commentedCan someone review this issue, it looks like simpletest is failing regardless of the patch, see issue here http://drupal.org/node/1662840
Comment #7
ianthomas_uk#1: identifier-fix-for-filter-remember-1659466-1.patch queued for re-testing.
Comment #9
ianthomas_ukI re-tested that because I submitted an issue and my test passed, so I assumed tests had been fixed in the mean time. After taking a closer look the problem looks to be that you've set the version to 7.x-2.5, but that's a tag and releases need to be against the branch.
Code change looks sensible, although it's not a feature I've come across so I wouldn't feel comfortable setting to RTBC
Comment #10
ianthomas_uk#1: identifier-fix-for-filter-remember-1659466-1.patch queued for re-testing.
Comment #11
stred CreditAttribution: stred commentedgood to know !!!
same on 6.x-2.9
Comment #12
plachance CreditAttribution: plachance commentedI have this bug too with Date 7.x-2.6. I've applied the patch manually and it doesn't seem to work. Plus, the patch would only work if the remember option is set. The value would still be lost between postbacks, unlike all other Views' filters.
Comment #13
recrit CreditAttribution: recrit commentedthis patch worked for me on an exposed date filter set to be remembered.
@plachance: the goal of the patch is to fix the views session for when the filter is set to be remembered. What specifically didn't work for you?
Comment #14
MustangGB CreditAttribution: MustangGB commented#1732650: Make "Remember the last selection" work was marked as a duplicate of this thread.
Comment #15
csilfverduk CreditAttribution: csilfverduk commentedI can confirm @recrit on this- the patch is working for us.
Comment #16
cafuego CreditAttribution: cafuego commentedApplied to 7.x-2.x.