-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
2.9.2
-
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
- duplicates
-
MDL-52429 SCORM completion is not calculated correctly in SCORM with multiple nested SCO levels
-
- Closed
-