-
Bug
-
Resolution: Fixed
-
Major
-
2.3.6, 2.4.3, 2.5, 2.6
-
MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
-
MDL-39487_master -
The ID number of assignment grades items is overwritten every time a student edits a submission or a teacher grades a submission. Only the ID number of the grade item changes, the ID number of the assignment does not.
Steps to reproduce:
- Create/edit and assignment and set the ID number to "A".
- Edit the grade item of the assignment (in Grades -> Categories and items -> Simple view). The ID number is "A".
- Edit a submission as a student or grade a submission as a teacher.
- Edit the assignment settings. The ID number is still 'A'.
- Edit the grade item of the assignment. The ID number is set to a number.
I've traced the bug to function gradebook_item_update of mod/assign/locallib.php. It updates the grade item, using the course module id as id number.