Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c053c5
)
MDL-31731 gradeing form: Fix hardcoded module name
author
Dan Poltawski
<dan@moodle.com>
Fri, 4 May 2012 06:02:39 +0000
(14:02 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Fri, 4 May 2012 06:02:39 +0000
(14:02 +0800)
grade/grading/form/guide/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/grade/grading/form/guide/lib.php
b/grade/grading/form/guide/lib.php
index
2418dea
..
7bd24e2
100644
(file)
--- a/
grade/grading/form/guide/lib.php
+++ b/
grade/grading/form/guide/lib.php
@@
-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('
assignment
', $context->instanceid);
+ $cm = get_coursemodule_from_id('', $context->instanceid);
$this->moduleinstance = $DB->get_record($modulename, array("id"=>$cm->instance));
}
}
@@
-877,4
+877,4
@@
class gradingform_guide_instance extends gradingform_instance {
$gradingformelement->getName(), $value, $this->validationerrors);
return $html;
}
-}
\ No newline at end of file
+}