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

Attempts grading dropdown initialized incorrectly when updating SCORM/AICC

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.5
    • Fix Version/s: 1.9.10
    • Component/s: SCORM
    • Labels:
      None
    • Environment:
      Linux, Apache 2.2, php 5.2.10, Mysql 5.1.34
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      When using the update SCORM/AICC form, the "Attempts Grading" option is always initialized to "Highest Attempt", no matter option is actually stored in the database.

      The problem seems to be line 192 in mod/scorm/mod_form.php

      Changing

      if (isset($default_values['grademethod']))

      { $default_values['whatgrade'] = intval($default_values['grademethod'] / 10); $default_values['grademethod'] = $default_values['grademethod'] % 10; }

      to

      if (isset($default_values['grademethod']))

      { $default_values['grademethod'] = $default_values['grademethod'] % 10; }

      seems to fix the problem. It looks like 'whatgrade' and 'grademethod' were, at some point, combined into one database column and that now 'whatgrade' has its own database column, but not all the code was changed.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

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