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()'

CommentFileSizeAuthor
#1 fullcalendar-exposed_filters-2040237.patch780 byteszhuber
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zhuber’s picture

Status: Needs work » Needs review
FileSize
780 bytes

This 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.

tim.plunkett’s picture

Issue summary: View changes
Status: Needs review » Needs work
+++ b/sites/all/modules/contrib/fullcalendar/fullcalendar.module
@@ -273,6 +273,12 @@ function fullcalendar_results($view_name = NULL, $view_display = NULL) {
+  if (isset($_SESSION['fullcalendar_filters'])) {

I'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.