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

Incorrect grade calculation when switching aggregation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.8.6
    • Fix Version/s: None
    • Component/s: Gradebook
    • Labels:
    • Affected Branches:
      MOODLE_28_STABLE

      Description

      When setting up categories and items, if you add grades then change aggregation from simple weighted mean of grades to weighted mean of grades and add weights, then change back to simple mean of grades, overall averages and course total no longer calculates correctly. The workaround is to change the aggregation to weighted mean of grades and remove the weights, then change it back to simple weight mean of grades to get it to calculate correctly again.

      Steps to reproduce:

      1) Enter Categories and items setup and add grade items (default calculation is Simple weighted mean of grades)
      2) Add grades for users, then verify that the overall averages and course total are calculating correctly
      2) Change the category calculation to Weighted mean of grades
      3) Enter weights
      4) Change back to Simple Weighted Mean of Grades
      5) Calculation is now incorrect.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mlockett MIchael Lockett
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: