Drupal Association members fund grants that make connections all over the world.
Updated: Comment #1
This is primarily an issue when importing Calendar views. If you export a calendar view the style option
groupby_times is not normally exported, unless the database value is overriding the default value defined in the calendar style plugin. When the view is subsequently imported (often via a Feature) the
groupby_times option is not initially stored in the database. The existing calendar code attempts to use the database value for
groupby_times, which then triggers error messages such as:
For a day view:
Notice: Undefined index: groupby_times in template_preprocess_calendar_day() (line 267 of /foo/sites/all/modules/calendar/theme/theme.inc). Notice: Undefined index: groupby_times in template_preprocess_calendar_day() (line 271 of /foo/sites/all/modules/calendar/theme/theme.inc).
For a week view:
Notice: Undefined index: groupby_times in template_preprocess_calendar_week() (line 480 of /foo/sites/all/modules/calendar/theme/theme.inc). Notice: Undefined index: groupby_times in template_preprocess_calendar_week() (line 484 of /foo/sites/all/modules/calendar/theme/theme.inc).
There are have been various resolutions proposed to address this issue. For those without the permissions or knowledge to apply a patch you can force the
groupby_times option to be stored in the database by editing the view and the day and week display and saving without changing any of the settings (see these instructions). An alternative is to edit the exported view configuration and and manually insert the option. However, the ideal resolution is to fix the code and this was discussed in
Review patch below.
User interface changes