diff --git a/main/inc/lib/agenda.lib.php b/main/inc/lib/agenda.lib.php index 18ab499e2c..5c0b558d5d 100644 --- a/main/inc/lib/agenda.lib.php +++ b/main/inc/lib/agenda.lib.php @@ -4721,7 +4721,7 @@ class Agenda 'backgroundColor' => $this->event_personal_color, 'editable' => false, 'sent_to' => get_lang('Me'), - 'type' => 'session', + 'type' => 'session_subscription', 'start' => $sessionInfo['display_start_date'], 'start_date_localtime' => $sessionInfo['display_start_date'] ? $this->formatEventDate($sessionInfo['display_start_date']) diff --git a/main/template/default/agenda/month.tpl b/main/template/default/agenda/month.tpl index 6327f02200..179c14c051 100755 --- a/main/template/default/agenda/month.tpl +++ b/main/template/default/agenda/month.tpl @@ -880,7 +880,7 @@ $(function() { }; {% endif %} - if ('session' === calEvent.type) { + if ('session_subscription' === calEvent.type) { buttons["{{ "GoToCourse"|get_lang }}"] = function() { window.location.href = calEvent.course_url; };