Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-39487

ID number of assignment grade item changes

    Details

    • Testing Instructions:
      Hide
      1. Create/edit and assignment and set the ID number to "A".
      2. Edit the grade item of the assignment (in Grades -> Categories and items -> Simple view). The ID number is "A".
      3. Edit a submission as a student or grade a submission as a teacher.
      4. Edit the assignment settings. Verify the ID number is still 'A'.
      5. Edit the grade item of the assignment. Verify the ID number is still 'A'.
      Show
      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. Verify the ID number is still 'A'. Edit the grade item of the assignment. Verify the ID number is still 'A'.
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-39487_master

      Description

      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:

      1. Create/edit and assignment and set the ID number to "A".
      2. Edit the grade item of the assignment (in Grades -> Categories and items -> Simple view). The ID number is "A".
      3. Edit a submission as a student or grade a submission as a teacher.
      4. Edit the assignment settings. The ID number is still 'A'.
      5. 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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  8/Jul/13