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

SCORM multi-sco problem in complete status

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.9.2
    • Fix Version/s: None
    • Component/s: SCORM
    • Labels:
      None
    • Affected Branches:
      MOODLE_29_STABLE

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: