MDL-69097 mod_forum: Apply filters to whole forum grading

This commit is contained in:
Iñigo Zendegi
2021-02-24 17:12:56 +01:00
parent 713b28c2a5
commit bbbb211c71
2 changed files with 6 additions and 6 deletions
@@ -186,9 +186,9 @@ class discussion_list {
'forum' => (array) $forumexporter->export($this->renderer),
'contextid' => $forum->get_context()->id,
'cmid' => $cm->id,
'name' => $forum->get_name(),
'name' => format_string($forum->get_name()),
'courseid' => $course->id,
'coursename' => $course->shortname,
'coursename' => format_string($course->shortname),
'experimentaldisplaymode' => $displaymode == FORUM_MODE_NESTED_V2,
'gradingcomponent' => $this->forumgradeitem->get_grading_component_name(),
'gradingcomponentsubtype' => $this->forumgradeitem->get_grading_component_subtype(),
+4 -4
View File
@@ -179,9 +179,9 @@ switch ($forum->get_type()) {
$gradeobj = (object) [
'contextid' => $forum->get_context()->id,
'cmid' => $cmid,
'name' => $forum->get_name(),
'name' => format_string($forum->get_name()),
'courseid' => $course->id,
'coursename' => $course->shortname,
'coursename' => format_string($course->shortname),
'experimentaldisplaymode' => $displaymode == FORUM_MODE_NESTED_V2,
'groupid' => $groupid,
'gradingcomponent' => $forumgradeitem->get_grading_component_name(),
@@ -196,9 +196,9 @@ switch ($forum->get_type()) {
$gradeobj = (object) [
'contextid' => $forum->get_context()->id,
'cmid' => $cmid,
'name' => $forum->get_name(),
'name' => format_string($forum->get_name()),
'courseid' => $course->id,
'coursename' => $course->shortname,
'coursename' => format_string($course->shortname),
'groupid' => $groupid,
'userid' => $USER->id,
'gradingcomponent' => $forumgradeitem->get_grading_component_name(),