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

SCORM multi-sco problem in complete status

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.9.2
    • SCORM
    • None
    • MOODLE_29_STABLE

      There is some troubles when you tried to complete a multi scoes scorm activity.

      Indeed, we can complete a simple sco if we didn't do them linearly (1st, 2nd, 3rd, ...) . But we can't complete a single sco in the scorm if we didn't did the first before.

      This issue seems only appears when cmi.core.exit is set and is equal to suspend.

      We found that the problem was the variable '$incomplete' in /mod/scorm/locallib.php is never reasigned to false once asigned to true.

      We fixed the issue by adding an else instruction at line 1495.

      So we modified the code from l.1488 to 1495 to that :

      if (($usertrack->status == 'notattempted') ||
               ($usertrack->status == 'incomplete') ||
               ($usertrack->status == 'browsed')) {
                        $incomplete = true;
                        if ($play && empty($scoid)) {
                               $scoid = $sco->id;
                          }
      }else{
          $incomplete=false
      }
      

      We first saw the problem on 2.7.4 but i don't know if it still in 2.7.x

            Unassigned Unassigned
            tdupuy Thibaut Dupuy
            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.