Needs work
Project:
Date
Version:
7.x-2.x-dev
Component:
Views Filter
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2012 at 10:25 UTC
Updated:
25 Mar 2023 at 15:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
anrikun commentedIf someone is interested in a solution to this issue, here is some code to add to a custom module to get this working.
It only applies to the case described above, that is, when exposed widget is date_select and granularity is month:
Comment #2
gagarine commentedStill an issue in 7.x
Comment #2.0
gagarine commentedminor rewrite
Comment #3
gagarine commentedTo fix that for contextual filter:
Comment #4
wooody commentedDo I need to add this code in template.php file in the theme directory.. or I need to create new module...?
Thanks
Comment #5
anrikun commented@gagarine: you forgot to mention that in
if($view->name=="archive"), "archive" must be replaced by the actual name of the view the fix must apply to.@wooody: you need to add these to a custom module.
Comment #5.0
anrikun commentedAlso a bug for contextual filter.
Comment #6
walidvb commentedI am trying to implement that solution for drupal 7 (I believe anrikun's solution is d6/views2), without success. I tried several approaches.
The one I am trying now, is to set the filter to take a min and max value, and alter these according to the exposed filter input: https://gist.github.com/anonymous/999af94054b1b6c9218f
The other was based on the above mentionned solution, and is here:
Comment #7
mrpeanut commented@anrikun — Do you happen to have an updated example for Drupal 7 / Views 3?
@walidvb — Were you able to get your code in #6 working with Drupal 7 / Views 3? Doesn't seem to be working for me (but that could be user error).
Comment #8
doppel commentedSubscribing to this issue.
any news for D7?
Comment #9
undertext commentedTrying to find some workaround.
Here is a patch. Didn't fully test it yet. But it works in my case.
Comment #10
undertext commentedForgot to include some code in the patch.
Here is the right one.
Comment #11
undertext commentedAlso added check if filter is really exposed.
Comment #17
michaellenahan commented@undertext - thank you. I can confirm that the patch in #11 works for me with date-7.x-2.8
PS With apologies for being off-topic, if anyone here is looking for how to swap the order of the dropdowns, so that 'Year' comes before 'Month', this works for me.
Comment #18
nickonom commentedEven though the date-7.x-2.8 was released long time ago (on July 29, 2014 - 19:03) and it is not the current recommended version I downloaded and installed it just to make this work, as Michaell Enahan confirmed it did for him, however unfortunately all I got in CLI was:
Comment #19
Niremizov commentedAlso need to notice, that there is no check inside exposed_submit() - method for date_select filter type, without this check date popup stop working. Here is my version of exposed_input function, that also checks for default value of filter (I would just leave it here, probably would be useful for someone).
Comment #20
skylord commentedHere's reroll of patch in #11 with fix from #19 for date 2.10.
Comment #21
skylord commentedComment #23
damienmckennaComment #24
skylord commentedHm. After 4 years noticed patch not apply cleanly while updating old site. ;) It was because it was made after #1876168-170: Exposed grouped filter for date not working applied... So, here's fixed patch tested on 2.12
Comment #27
kunal_sahu commentedproviding an patch . please review and update the patch . Thanks