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

SCORM: Restorelib.php diff with fix for restoring several scorm values properly instead of restoring with default values.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.9.5
    • 1.9.8
    • SCORM
    • None
    • MySql v.5.0.51a
    • MySQL
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE
    • Easy

    Description

      Restoring a Scorm activity does not retain the following Scorm db values:

      • maxgrade
      • updatefreq
      • maxattempt
      • grademethod

      Attached is a diff file that contains a small change to the /mod/scorm/restorelib.php which resolves this issue.

      Process to reproduce issue.

      1. Create a new SCORM within a valid course. Fill values as desired/required, making sure to change the fields below as follows:

      • Under 'Other Settings', Change 'Grading Method' to any non-default value (grademethod)
      • Under 'Other Settings', change 'Maximum Grade' to any value > 0 (maxgrade)
      • Under 'Other Settings', change 'Number of Attempts' to any value > 0 (maxattempt)
      • Under 'Other Settings', change 'Auto-update Frequency' to any non-default value (updatefreq)
        2. Create a backup of the course with all Scorm information/data.
        3. Restore the backup file to a new course.
        4. Check the Scorm values for the fields mentioned in step 1.

      Expected Results:
      Restored Scorm values for Grading Method, Maximum Grade, Number of Attempts, and Auto-update Frequency equal to original backed-up scorm values.

      Actual Results:
      Restored Scorm values for Grading Method, Maximum Grade, Number of Attempts, and Auto-update Frequency are reset to default values.

      Attachments

        Activity

          People

            danmarsden Dan Marsden
            mavelar Michael Avelar
            Nobody Nobody
            Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              25/Mar/10