Skip to content

Commit

Permalink
Agenda: Fix load reminders for session event - refs BT#19392
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Jan 5, 2022
1 parent 0b455c8 commit a4b5cb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main/inc/lib/agenda.lib.php
Expand Up @@ -1477,7 +1477,10 @@ function (array $eventInfo) {
$id = str_replace(['personal_', 'course_', 'session_'], '', $eventInfo['id']);

$eventInfo['reminders'] = $this->parseEventReminders(
$this->getEventReminders($id, $eventInfo['type'])
$this->getEventReminders(
$id,
'session' === $eventInfo['type'] ? 'course' : $eventInfo['type']
)
);

return $eventInfo;
Expand Down

0 comments on commit a4b5cb6

Please sign in to comment.