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

Sum of Grades still not calculating correctly with hidden items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.6.6, 2.7.3
    • 2.6.4
    • Gradebook
    • 8
    • BACKEND Sprint 16

      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.

            damyon Damyon Wiese
            mcka0074 Mark McKay
            Adrian Greeve Adrian Greeve
            Marina Glancy Marina Glancy
            Rajesh Taneja Rajesh Taneja
            Votes:
            6 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.