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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user