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

Moodle casts scale name into an integer number and may consider it as points

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.4
    • Fix Version/s: 1.8.6
    • Component/s: Gradebook
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      Description

      Steps to reproduce
      ============

      0. create a new empty course
      1. create a new scale and name it e.g. "3 Nuts for Cinderella" (put an integer as a first part of the name)
      2. create two new assignments - let us call them A and B
      3. set maximum grade for the assignment A to 10 points
      4. set the scale "3 Nuts for Cinderella" as a grading method of the assignment B
      5. grade some submissions in both assignments
      4. go to the grade book and see the total number of points in the header

      What I expected to see
      ==============

      Total points is 10 - because of assignment A. Scale grades are displayed but do not influence the total points.

      What actually happened
      ===============

      Total points is 13. Assignment A has maximum grade 10 points. Assignment B is considered to have maximum grade 3 points. Even students with 10 points from assignment 10 and the best scale item from assignment B can not reach 100% of points; they still have only 10 points of 13.

      This happens always when the scale name may be casted into non-zero integer number.

        Attachments

          Activity

            People

            Assignee:
            aborrow Anthony Borrow
            Reporter:
            mudrd8mz David Mudrák (@mudrd8mz)
            Tester:
            Petr Skoda
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jul/08