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

Sum of Grades still not calculating correctly with hidden items

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.4
    • Fix Version/s: 2.6.6, 2.7.3
    • Component/s: Gradebook
    • Labels:
    • Story Points:
      8
    • Sprint:
      BACKEND Sprint 16

      Description

      In the following example on a vanilla instance of core 2.6.4+ with "exclude hidden items from totals" set on the course, I created two categories (aggregation set to Sum of Grades), each with two 100-point items, and gave the student 100 points for each item (400 total points). I then hid item 4 which should change the totals to 300/300.

      Gradebook Testing
      Category 1
      Item 1 100.00 0–100 100.00 %
      Item 2 100.00 0–100 100.00 %
      Category total 200.00 0–200 100.00 %

      Category 2
      Item 3 100.00 0–100 100.00 %
      Item 4 (hid) - 0–100 -
      Category total 100.00 0–100 200.00 %

      Course total 200.00 0–200 200.00 %

      As you can see from the results, the hidden item results in the course total of 200 points (and 200%), and Category 2 has the wrong percentage.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              damyon Damyon Wiese
              Reporter:
              mcka0074 Mark McKay
              Peer reviewer:
              Adrian Greeve
              Integrator:
              Marina Glancy
              Tester:
              Rajesh Taneja
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              6 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14