MDL-60072 mod_lesson: Add missing name attribute
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 20 Oct 2017 03:43:15 +0000 (11:43 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Fri, 20 Oct 2017 03:43:15 +0000 (11:43 +0800)
mod/lesson/lib.php

index 1e74ecd..96931c5 100644 (file)
@@ -222,7 +222,7 @@ function lesson_update_events($lesson, $override = null) {
                     unset($event->id);
                 }
                 $event->type      = CALENDAR_EVENT_TYPE_ACTION;
                     unset($event->id);
                 }
                 $event->type      = CALENDAR_EVENT_TYPE_ACTION;
-                $event->name      = get_string('lessoneventcloses', 'lesson');
+                $event->name      = get_string('lessoneventcloses', 'lesson', $eventname);
                 $event->timestart = $deadline;
                 $event->timesort  = $deadline;
                 $event->eventtype = LESSON_EVENT_TYPE_CLOSE;
                 $event->timestart = $deadline;
                 $event->timesort  = $deadline;
                 $event->eventtype = LESSON_EVENT_TYPE_CLOSE;