MDL-31731 gradeing form: Fix module name
This commit is contained in:
committed by
Dan Poltawski
parent
cfc73aa790
commit
abf0c875bb
@@ -338,7 +338,7 @@ class gradingform_guide_controller extends gradingform_controller {
|
||||
$dbman = $DB->get_manager();
|
||||
$modulename = substr($modulename, 4);
|
||||
if ($dbman->table_exists($modulename)) {
|
||||
$cm = get_coursemodule_from_id('', $context->instanceid);
|
||||
$cm = get_coursemodule_from_id($modulename, $context->instanceid);
|
||||
$this->moduleinstance = $DB->get_record($modulename, array("id"=>$cm->instance));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user