MDL-22181 fixed 'random' overriding of assignment idnumbers in gradebook - big thanks to Gordon Bridge for the report and patch

This commit is contained in:
Petr Skoda
2010-04-24 17:37:54 +00:00
parent c6bd6f2413
commit 7c9ec0dbdb
+1 -1
View File
@@ -71,7 +71,7 @@ class assignment_base {
error('assignment ID was incorrect');
}
$this->assignment->cmidnumber = $this->cm->id; // compatibility with modedit assignment obj
$this->assignment->cmidnumber = $this->cm->idnumber; // compatibility with modedit assignment obj
$this->assignment->courseid = $this->course->id; // compatibility with modedit assignment obj
$this->strassignment = get_string('modulename', 'assignment');