Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
2.3, 2.7
-
MOODLE_23_STABLE, MOODLE_27_STABLE
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MDL-35984-master -
-
20
-
BACKEND Sprint 15
Description
When using the Sum of grades aggregation, if one of more items are hidden the total shown to students is no longer the correct Sum and appears to be the 'Mean of grades'
Steps to reproduce:
Make 4 Assignments (or just grade items), set their max grades to 10, 20, 30 and 40 (total = 100 to make it easy)
Find a student and mark them for each so their scores are 5/10, 10/20, 15/30, 20/40 (50% for all)
Set the Aggregation in Grades to 'Sum of grades'
('Extra credit' and 'Aggregate only non-empty grades' all unticked)
View User report and you'll see a total of 50/100 for the student (or login with the student account for the same view)
Asmt1 5.00 0-10
Asmt2 10.00 0-20
Asmt3 15.00 0-30
Asmt4 20.00 0-40
Total 50.00 0-100
Go to "Full view' and hide assignment 4 (I used with the 'eye' in the Actions list but other methods produce the same result)
Go to 'Course grade settings',
Change 'Hide totals if they contain hidden items' to 'Show totals excluding hidden items'
And change 'Show hidden items' to 'Do not show'
View User report
The 3 remaining items are 5, 10, 15 which total 30 however total shown is now 37.5/100
Asmt1 5.00 0-10
Asmt2 10.00 0-20
Asmt3 15.00 0-30
Total 37.50 0-100
Whichever item is hidden the total is always 37.5/100, if 2 items are hidden the total is 25/100.
Expecting that when an item is hidden the Sum total should not include it so when item 4 was hidden the total should be 60 and the student score 30/60 however the total remains at 100.
I've tested this in 2.3, 2.1 and 2.0 all do the same.
I couldn't find anything similar in the tracker but found this which may be related:
http://tracker.moodle.org/browse/MDL-14831
Attachments
Issue Links
- caused a regression
-
MDL-46997 Sum of Grades still not calculating correctly with hidden items
-
- Closed
-
- has a non-specific relationship to
-
MDL-36239 Incorrect total on user grade report when showing totals excluding hidden items and sum of grades aggregation
-
- Closed
-
-
MDL-39708 User Report Aggregation - Sum of grades - total excluding hidden item - aggregate only non-empty grades calcuation error
-
- Closed
-
- has been marked as being related by
-
MDL-23858 Percentage is not calculating correctly when "Show totals excluding hidden items" is selected
-
- Closed
-
- Testing discovered
-
MDL-48059 Gradebook : Inconsistency Between Student/Teacher User report when excluding hidden Grade
-
- Closed
-
- will help resolve
-
MDL-19151 Disable "Aggregate only non-empty grades" for SUM aggregation
-
- Closed
-
-
MDL-36435 "Aggregate non-empty grades" does not work with Sum of Grades aggregation
-
- Closed
-