Agenda: Fix event type for sessions with personal_calendar_show_sessions_occupation - refs BT#19392

pull/4127/head
Angel Fernando Quiroz Campos 4 years ago
parent 6b51f1a33b
commit f8d11e9dc0
  1. 2
      main/inc/lib/agenda.lib.php
  2. 2
      main/template/default/agenda/month.tpl

@ -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'])

@ -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;
};

Loading…
Cancel
Save