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

Duplicate records in grades export

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • 1.9.11, 2.0.2
    • Gradebook
    • MOODLE_19_STABLE, MOODLE_20_STABLE
    • Easy

      If a course participant has the "Student" role in a course, and also has the "Student" role assigned in the parent course category, the Grades export includes duplicate entries for the participant.

      Reproductions:

      • assign a Moodle user the "Student" role in a course
      • assign the Moodle user the "Student" role in the parent course category
      • submit & grade an assignment for the user within the course
      • view the course Grades (e.g. grade/report/grader/index.php?id=<course_id>)
      • export a plain text file

      Expected outcome: One record per student on the course
      Actual outcome: Two records per student, one with course crades, and a second without.

      e.g.

      First name,Surname,ID number,Institution,Department,Email address,Assignment 1,Assignment 2,Assignment 3,Course total
      Jake,Abram,004077,,,10abramj@xxxx.co.uk,Complete,Incomplete,Complete,29.41
      Jake,Abram,004077,,,10abramj@xxxx.co.uk,-,-,-,-
      Josh,Ackers,004078,,,10ackersj@xxxx.co.uk,Complete,Incomplete,Complete,23.53
      Josh,Ackers,004078,,,10ackersj@xxxx.co.uk,-,-,-,-
      Alice,Adams,004079,,,10adamsa@xxxx.co.uk,Complete,Incomplete,Complete,64.71
      Alice,Adams,004079,,,10adamsa@xxxx.co.uk,-,-,-,-
      [...]

            darenc Daren Chandisingh (Inactive)
            darenc Daren Chandisingh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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