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

Decimal points are user preferences, should be grade_item field

    XMLWordPrintable

    Details

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

      Description

      For the same reasons that the gradedisplaytype setting was removed from gradebook user preferences, and added to the grade_item table, it would appear that the decimal points should also receive the same treatment.

      Rationale:

      1. "Real" and "Percentage" display types both use decimal points
      2. It makes no sense giving each grade_item control over the gradedisplaytype without also giving control over how these 2 types of display are... displayed

      Additionally, constants do not need to be defined for the decimal points, because it would mean defining 12 new constants (0-5 for real and percentage display types). Simple integers will suffice.

      It is thus proposed to add a "decimals" field to grade_item (tinyint(1)) and apply the same type of class and form changes that were applied to the gradedisplaytype setting.

        Attachments

          Activity

            People

            Assignee:
            nicolasconnault Nicolas Connault
            Reporter:
            nicolasconnault Nicolas Connault
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08