Since there was changes made by the calendar module when exporting a calendar view I get error notices like this each time I view the calendar view after installing a feature:
Notice: Undefined variable: type in calendar_granularity_path() (line 518 of /var/aegir/platforms/jbasic-group-7.12-1.7/sites/sandbox.local/modules/contrib/calendar/calendar.module).
Notice: Undefined variable: type in calendar_granularity_path() (line 518 of /var/aegir/platforms/jbasic-group-7.12-1.7/sites/sandbox.local/modules/contrib/calendar/calendar.module).
Notice: Undefined variable: type in calendar_granularity_path() (line 518 of /var/aegir/platforms/jbasic-group-7.12-1.7/sites/sandbox.local/modules/contrib/calendar/calendar.module).
Notice: Undefined variable: type in calendar_preprocess_date_views_pager() (line 151 of /var/aegir/platforms/jbasic-group-7.12-1.7/sites/sandbox.local/modules/contrib/calendar/calendar.module).
Notice: Undefined variable: type in calendar_granularity_path() (line 518 of /var/aegir/platforms/jbasic-group-7.12-1.7/sites/sandbox.local/modules/contrib/calendar/calendar.module).
Notice: Undefined variable: type in calendar_preprocess_date_views_pager() (line 152 of /var/aegir/platforms/jbasic-group-7.12-1.7/sites/sandbox.local/modules/contrib/calendar/calendar.module).
Notice: Undefined variable: type in calendar_preprocess_date_views_pager() (line 153 of /var/aegir/platforms/jbasic-group-7.12-1.7/sites/sandbox.local/modules/contrib/calendar/calendar.module).
Notice: Undefined variable: type in calendar_granularity_path() (line 518 of /var/aegir/platforms/jbasic-group-7.12-1.7/sites/sandbox.local/modules/contrib/calendar/calendar.module).
The calendar works perfectly on the source site with the origional view it only displays the errors after it has been exported to the feature and installed onto a new site.
When I add the following line of code into the my_events.views_default.inc for the Month Section
$handler->display->display_options['arguments']['date_argument']['granularity'] = 'month';
The notices disapear and it seems to be working normal again... So I assume it's not exporting this value correctly.
There seems to be a line for the week and day generated but not for the month.
Comments
Comment #1
hefox commentedThere is not really anything features can do for this; it's a calendar + views issue, but really probably just means view needs to be resaved and and reexported.