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

Scorm quiz results cannot be stored due to wrong variable name.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.5.2
    • SCORM
    • None
    • MOODLE_405_STABLE

      Hello,

      certain scorm quizzes cannot be completed and get zero points because of a wrong variable name which is resulting in using an unassigned variable.

      The code is in mod/scorm/locallib.php line 473

       

                 if ($element == 'cmi.core.score.raw') {
                  $tracktest = scorm_get_sco_value($scoid, $userid, 'cmi.core.lesson_status', $attempt->attempt);
                  if (!empty($tracktest)) {
                      if ($tracktest->value == "incomplete") {
                          $v = new stdClass();
                          $v->id = $track->valueid; // should be $tracktest->valueid
                          $v->value = "completed";
                          $DB->update_record('scorm_scoes_value', $v);
                      }
                  }
              } 

       
       

       

            Unassigned Unassigned
            ipasanec Immanuel Pasanec
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.