From f56b82e4b690481b8ed9dc4f787eff200f575661 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Thu, 31 Oct 2013 14:45:03 +0800 Subject: [PATCH] Do not set the courseid variable for the cm_info object Doing this causes a debugging message to display in 2.6. --- element/grade/lib.php | 1 - 1 file changed, 1 deletion(-) diff --git a/element/grade/lib.php b/element/grade/lib.php index 483320e..3a45a81 100644 --- a/element/grade/lib.php +++ b/element/grade/lib.php @@ -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)) {