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.
If you have an AJAX fullcalendar display and it updates using an exposed filter that filter value will be ignored. The exposed filters are ignored with the call to 'fullcalendar/ajax', which calls the view again with 'fullcalendar_results()'
Comment | File | Size | Author |
---|---|---|---|
#1 | fullcalendar-exposed_filters-2040237.patch | 780 bytes | zhuber |
Comments
Comment #1
zhuber CreditAttribution: zhuber commentedThis is not an elegant solution and I encourage anyone to do something better and more sustainable, however the way this module was built does not seem to allow for the dynamic exposed filters.
I noticed that all ajax views are submitted twice, since we have a custom javascript event that retrieves the view again in order to refresh the calendar results. It would be good to remove this functionality and replace it with something a bit more accurate, but until then here is a fix. Basically this uses session variables to find user submitted exposed filter values and submit them to the view inside fullcalendar_results.
Comment #2
tim.plunkettI'm not sure $_SESSION is right here. And what is 'fullcalendar_filters'? We don't use that anywhere else, I don't see how that could be set.