Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.2
-
Fix Version/s: None
-
Component/s: Gradebook
-
Labels:None
-
Database:MySQL
-
Affected Branches:MOODLE_19_STABLE
Description
If a student is enrolled in multiple courses, and there are different number of students in each course, then the rank max is chosen based on the course they came from for every course. For example, Bob is a student in Course A and Course B. There are 15 students in A and 20 in B. From A, he navigates to his Overview report which gives his rank out of 15 for A, and his rank out of 15 for B! For B, the max for both would be 20. I have provided a patch that can fix the rank bug.
Unfortunately, we found a bug in this fix where the overview report still counted students grades who had been removed from the course. This led to students having ranks of 89/78 (which makes no sense) and 2/78 where they were the highest grade for an enrolled student in the course, but a student who dropped had a higher grade. I changed the SQL query to account for moodle role assignments in the current course.
I also made the same fix for the user report and am creating that bug report as well.