Skip to content

Commit

Permalink
MDL-78302 mod_forum: fix course module grade button parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Aug 7, 2023
1 parent 6145630 commit ecee875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/forum/view.php
Expand Up @@ -188,7 +188,7 @@
$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),
Expand All @@ -206,7 +206,7 @@
$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),
Expand Down

0 comments on commit ecee875

Please sign in to comment.