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

Can't set grademax, grademin and gradepass to zero while editing a grade category

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.5
    • Fix Version/s: 1.9.6, 2.0
    • Component/s: Accessibility, Gradebook
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      There is a problem with some validation of item fields on grade category editing, because the php function "empty($var)" return true if we have the string "0". This patch corrects this problem, adding an extra test, "AND $var != '0'".
      This patch also affects the way grademin and grademax are validated, correcting the behaviour in the scenario that both values are zero.

        Attachments

          Activity

            People

            • Assignee:
              nicolasconnault Nicolas Connault
              Reporter:
              danielneis Daniel Neis Araujo
              Tester:
              Andrew Davis
              Participants:
              Component watchers:
              Adrian Greeve, Mihail Geshoski, Peter Dias, Jake Dallimore, Jun Pataleta, Ryan Wyllie
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                21/Oct/09