MDL-52646 mod_scorm: fix missing launch_data for SCORM 2004

This commit is contained in:
Willem Roes 2016-03-20 11:14:34 +01:00
parent fed66ad9e2
commit 96f56b6e29
2 changed files with 2 additions and 1 deletions

View File

@ -185,7 +185,7 @@ function SCORMapi1_3(def, cmiobj, cmiint, cmicommentsuser, cmicommentslms, scorm
'cmi.interactions.n.result':{'pattern':CMIIndex, 'format':CMIResult, 'mod':'rw'},
'cmi.interactions.n.latency':{'pattern':CMIIndex, 'format':CMITimespan, 'mod':'rw'},
'cmi.interactions.n.description':{'pattern':CMIIndex, 'format':CMILangString250, 'mod':'rw'},
'cmi.launch_data':{'defaultvalue':def[scoid]['cmi.exit'], 'mod':'r'},
'cmi.launch_data':{'defaultvalue':def[scoid]['cmi.launch_data'], 'mod':'r'},
'cmi.learner_id':{'defaultvalue':def[scoid]['cmi.learner_id'], 'mod':'r'},
'cmi.learner_name':{'defaultvalue':def[scoid]['cmi.learner_name'], 'mod':'r'},
'cmi.learner_preference._children':{'defaultvalue':student_preference_children, 'mod':'r'},

View File

@ -1280,6 +1280,7 @@ function get_scorm_default (&$userdata, $scorm, $scoid, $attempt, $mode) {
$def['cmi.suspend_data'] = scorm_isset($userdata, 'cmi.suspend_data');
$def['cmi.time_limit_action'] = scorm_isset($userdata, 'timelimitaction');
$def['cmi.total_time'] = scorm_isset($userdata, 'cmi.total_time', 'PT0H0M0S');
$def['cmi.launch_data'] = scorm_isset($userdata, 'datafromlms');
return $def;
}