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

ID number of assignment grade item changes

XMLWordPrintable

    • MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • MDL-39487_master
    • 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'.

      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.

            damyon Damyon Wiese
            albert.gasset Albert Gasset
            Damyon Wiese Damyon Wiese
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Andrew Davis Andrew Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.