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

Gradebook calculations when all input grades are null

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.9
    • Fix Version/s: 2.0
    • Component/s: Gradebook
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      At the moment, the code for computing calculated grades (The method use_formula in lib/grade/grade_item.php) replaces any missing/null input grades with 0 before applying the formula.

      Based on our usage here at the Open University, we would like to propose a small change to this behaviour. What we would like is:
      1. If ALL the input grades to a calculation are missing/null, then the result of the calculation is null.
      2. Otherwise, the result is calculated as at present, with any missing grades treated as 0.

      The attached patch implements this change.

      I know everyone is busy with Moodle 2.0 at the moment, but I would be grateful for any consideration you can give this. (The patch should apply to 1.9 or 2.0.)

      I am about to make to post in the Gradebook forum to discuss this.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10