diff --git a/CHANGELOG.md b/CHANGELOG.md index 398ba83..0b6f4c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,10 @@ # Changelog -## 1.0.5 - 2023-06-30 +## 1.0.5 - 2023-09-07 ### Added - Added missing language strings. +### Fixed +- When users click on preference voting in the course side block of activities, they get a coding error message. ## 1.0.4 - 2023-06-19 ### Added diff --git a/index.php b/index.php index 50b62e3..1532dc0 100644 --- a/index.php +++ b/index.php @@ -34,7 +34,7 @@ $coursecontext = context_course::instance($course->id); $event = \mod_sortvoting\event\course_module_instance_list_viewed::create([ - 'context' => $modulecontext + 'context' => $coursecontext ]); $event->add_record_snapshot('course', $course); $event->trigger();