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

The calculated letter grade in the user report, when selecting "all users" is incorrect.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.9.8
    • Fix Version/s: 1.9.10
    • Component/s: Gradebook
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      I am running $release = '1.9.8+ (Build: 20100331).

      I pick grade, user report, then select all users. The letter grade for all users seems to match the first person's grade, which certainly is incorrect and a problem (bug). If I select an individual user, the grade is correct.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            michael.robinette Mike Robinette added a comment -

            We have a client who has the same issue. However, our client is using percentages instead of letter grades. Moodle 1.9.9+ (Build: 20100610).

            In our testing it appears the problem occurs when in "Course Settings" (Grades > Settings > Course), "Show totals excluding hidden items" is selected in the User Report section AND at least one item is hidden in the grade book. If NO items are hidden, and All Users (or individual users) are selected for the User Report (Grades > View > User Report), then each user's Course Total is correct.

            Show
            michael.robinette Mike Robinette added a comment - We have a client who has the same issue. However, our client is using percentages instead of letter grades. Moodle 1.9.9+ (Build: 20100610). In our testing it appears the problem occurs when in "Course Settings" (Grades > Settings > Course), "Show totals excluding hidden items" is selected in the User Report section AND at least one item is hidden in the grade book. If NO items are hidden, and All Users (or individual users) are selected for the User Report (Grades > View > User Report), then each user's Course Total is correct.
            Hide
            lkiraly Lea Kiraly added a comment -

            Paradise Valley Unified School District is the client that Mike is referring to above.. we would like to have this issue resolved.. I did vote.. There should be a few others behind me that vote on this too.
            Lea Kiraly

            Show
            lkiraly Lea Kiraly added a comment - Paradise Valley Unified School District is the client that Mike is referring to above.. we would like to have this issue resolved.. I did vote.. There should be a few others behind me that vote on this too. Lea Kiraly
            Hide
            andyjdavis Andrew Davis added a comment -

            I've committed a fix for this to both 1.9 and 2.0.

            The code that alters the course total depending on hidden items was assuming it would only deal with a single user. To improve performance it holds onto the user's grades and doesn't notice when you switch from dealing with user 1 to user 2, user 3 etc. Now it does.

            Thankyou all for the report and the information

            Show
            andyjdavis Andrew Davis added a comment - I've committed a fix for this to both 1.9 and 2.0. The code that alters the course total depending on hidden items was assuming it would only deal with a single user. To improve performance it holds onto the user's grades and doesn't notice when you switch from dealing with user 1 to user 2, user 3 etc. Now it does. Thankyou all for the report and the information

              People

              • Votes:
                7 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  25/Oct/10