mirror of
https://github.com/moodle/moodle.git
synced 2025-02-15 05:15:07 +01:00
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:
parent
5a5487ff7f
commit
3811c1d4ad
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user