MDL-28300 SCORM Fix check for SCORM 2004 thanks to Silvia Bastos for report/patch
This commit is contained in:
@@ -1101,7 +1101,7 @@ function scorm_get_attempt_count($userid, $scorm, $attempts_only=false) {
|
||||
if ($scorm->grademethod == GRADESCOES) {
|
||||
$element = 'cmi.core.lesson_status';
|
||||
}
|
||||
if ($scorm->version == 'scorm1_3') {
|
||||
if ($scorm->version == 'scorm_13' || $scorm->version == 'SCORM_1.3') {
|
||||
$element = 'cmi.score.raw';
|
||||
}
|
||||
$attempts = $DB->get_records_select('scorm_scoes_track',"element=? AND userid=? AND scormid=?", array($element, $userid, $scorm->id),'attempt','DISTINCT attempt AS attemptnumber');
|
||||
|
||||
Reference in New Issue
Block a user