Skip to content
Snippets Groups Projects
Commit 69e13f6f authored by Karen Stevenson's avatar Karen Stevenson
Browse files

#360364 by marcushenningsen, don't link to day if there is no day view.

parent 603f80c1
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ See documentation at http://drupal.org/node/262064.
Version 2.0 dev
=================
- #360364 by marcushenningsen, don't link to day if there is no day view.
- #382852 by llslim, make sure replacements patterns work even if field is excluded.
- #660880 by kaare, fix method of including js in jacalendar module.
- #760316 by skwashd, arithmetric clean up ical rfc compliance.
......
......@@ -511,7 +511,7 @@ function template_preprocess_calendar_datebox(&$vars) {
$vars['day'] = intval(substr($date, 8, 2));
$force_view_url = !empty($view->date_info->block) ? TRUE : FALSE;
$vars['url'] = date_real_url($view, NULL, $date, $force_view_url);
$vars['link'] = l($vars['day'], $vars['url']);
$vars['link'] = !empty($view->date_info->display_types['day']) ? l($vars['day'], $vars['url']) : $vars['day'];
$vars['granularity'] = $view->date_info->granularity;
$vars['mini'] = $view->date_info->mini;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment