MDL-78302 mod_forum: fix course module grade button parameters.

This commit is contained in:
Paul Holden 2023-07-06 23:59:30 +01:00
parent 614563082b
commit ecee875be0
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164

View File

@ -188,7 +188,7 @@ switch ($forum->get_type()) {
$groupid = groups_get_activity_group($cm, true) ?: null;
$gradeobj = (object) [
'contextid' => $forum->get_context()->id,
'cmid' => $cmid,
'cmid' => $forum->get_course_module_record()->id,
'name' => format_string($forum->get_name()),
'courseid' => $course->id,
'coursename' => format_string($course->shortname),
@ -206,7 +206,7 @@ switch ($forum->get_type()) {
$groupid = groups_get_activity_group($cm, true) ?: null;
$gradeobj = (object) [
'contextid' => $forum->get_context()->id,
'cmid' => $cmid,
'cmid' => $forum->get_course_module_record()->id,
'name' => format_string($forum->get_name()),
'courseid' => $course->id,
'coursename' => format_string($course->shortname),