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,-,-,-,-
|
[...]
|
- duplicates
-
MDL-20946 Grade book averages are wrong if a student has multiple roles or has been deleted
-
- Closed
-