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

Typo in the locallib leading to an exception

XMLWordPrintable

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

      While I was testing the forcecomplete setting and debuggin, I saw an issue the[ locallib.php|https://github.com/moodle/moodle/blob/main/mod/scorm/locallib.php#L476] of the scorm Module.

                 $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;
                          $v->value = "completed";
                          $DB->update_record('scorm_scoes_value', $v);
                      } 

      The variable $track is undefined, leading to an exception.

            Unassigned Unassigned
            laurent.david@moodle.com Laurent David
            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.