Do not set the courseid variable for the cm_info object
Doing this causes a debugging message to display in 2.6.
This commit is contained in:
parent
34c0622d95
commit
f56b82e4b6
1 changed files with 0 additions and 1 deletions
|
@ -182,7 +182,6 @@ class customcert_element_grade extends customcert_element_base {
|
|||
continue;
|
||||
}
|
||||
$mod = $mods[$sectionmod];
|
||||
$mod->courseid = $COURSE->id;
|
||||
$instance = $DB->get_record($mod->modname, array('id' => $mod->instance));
|
||||
// Get the grade items for this activity.
|
||||
if ($gradeitems = grade_get_grade_items_for_activity($mod)) {
|
||||
|
|
Loading…
Reference in a new issue