From 07dbbdde39a74eee4e3a3e5aff2d7d5fdb3def46 Mon Sep 17 00:00:00 2001 From: Mayank Gupa Date: Sun, 31 Jul 2011 11:14:24 +0530 Subject: [PATCH] MDL-10707 SCORM Fixing cmi.max_time_allowed returned null --- mod/scorm/datamodels/scorm_13.js.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/scorm/datamodels/scorm_13.js.php b/mod/scorm/datamodels/scorm_13.js.php index b03d9b3350f..9b5d4874091 100644 --- a/mod/scorm/datamodels/scorm_13.js.php +++ b/mod/scorm/datamodels/scorm_13.js.php @@ -205,7 +205,7 @@ function SCORMapi1_3() { 'cmi.learner_preference.delivery_speed':{'defaultvalue':'1', 'format':CMIDecimal, 'range':speed_range, 'mod':'rw'}, 'cmi.learner_preference.audio_captioning':{'defaultvalue':'0', 'format':CMISInteger, 'range':text_range, 'mod':'rw'}, 'cmi.location':{'defaultvalue':{'cmi.location'})?'\''.$userdata->{'cmi.location'}.'\'':'null' ?>, 'format':CMIString1000, 'mod':'rw'}, - 'cmi.max_time_allowed':{'defaultvalue':maxtimeallowed)?'\''.$userdata->maxtimeallowed.'\'':'null' ?>, 'mod':'r'}, + 'cmi.max_time_allowed':{'defaultvalue':attemptAbsoluteDurationLimit)?'\''.$userdata->attemptAbsoluteDurationLimit.'\'':'null' ?>, 'mod':'r'}, 'cmi.mode':{'defaultvalue':'mode ?>', 'mod':'r'}, 'cmi.objectives._children':{'defaultvalue':objectives_children, 'mod':'r'}, 'cmi.objectives._count':{'mod':'r', 'defaultvalue':'0'},