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

Gradebook update assumes order of SCORM API element processing

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.3, 2.0
    • 1.9.4, 2.0
    • SCORM
    • None
    • All
    • MOODLE_19_STABLE, MOODLE_20_STABLE
    • MOODLE_19_STABLE, MOODLE_20_STABLE

    Description

      When the SCORM API processes elements updates commited from the SCORM package, it assumes an order of status -> score inorder for the gradebook update to work:
      if (strstr($element, '.score.raw') ||
      (($element == 'cmi.core.lesson_status' || $element == 'cmi.completion_status') && ($track->value == 'completed' || $track->value == 'passed'))) {
      $scorm = get_record('scorm', 'id', $scormid);
      $grademethod = $scorm->grademethod % 10;
      if (strstr($element, '.score.raw') || $grademethod == GRADESCOES )

      { include_once('lib.php'); scorm_update_grades($scorm, $userid); }

      }

      from scorm_insert_track().

      Attachments

        Activity

          People

            piers Piers Harding
            piers Piers Harding
            Dan Marsden Dan Marsden
            Dan Marsden, Matteo Scaramuccia, 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:
              28/Jan/09