-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.11, 4.4.1
-
None
-
MOODLE_401_STABLE, MOODLE_404_STABLE
Issue description:
When a user is graded in a category using Natural aggregation, the category total will incorrectly show as a blank grade when using the following configuration:
- Hidden Course total
- 'Hide totals if they contain hidden items' set to 'Hide' in Course grade settings
The gradebook acts as if there is a hidden grade item in the category and displays a blank grade for the category total in the User report screen.
Replication steps:
- Create a new course
- Enrol a Student user into the course
- Go to Grades tab
- In the dropdown, select 'Course grade settings'
- Ensure User report>Hide totals if they contain hidden items is set to 'Hide'
- Save changes
- In the dropdown, select 'Gradebook setup'
- Add a Category 'Test category' and ensure 'Aggregation' is set to Natural
- Add a Grade item 'Test 1' and ensure the Parent category is 'Test category'
- Hide the Course total
- In the dropdown, select 'Grader report'
- Add a grade of '100' for the Student user
- In the dropdown, select 'User report'
- Search for the enrolled Student user
- Observe the value for 'Test category'
Observed behaviour:
'Test category' displays a blank grade for the user
Expected behaviour:
'Test category' displays '100' for the user