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:39:20 +00:00
parent 5a5487ff7f
commit 3811c1d4ad

View File

@ -122,7 +122,7 @@ class assignment_base {
print_error('invalidid', 'assignment');
}
$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');