diff --git a/mod/scorm/datamodels/scorm_12.php b/mod/scorm/datamodels/scorm_12.php index a17969513e6..dcdd8849178 100644 --- a/mod/scorm/datamodels/scorm_12.php +++ b/mod/scorm/datamodels/scorm_12.php @@ -51,6 +51,7 @@ if (intval(get_config("scorm", "scorm12standard"))) { $cmistring4096 = $cmistring256; } +$scorm->autocommit = ($scorm->autocommit === "1") ? true : false; $PAGE->requires->js_init_call('M.scorm_api.init', array($def, $cmiobj, $cmiint, $cmistring256, $cmistring4096, scorm_debugging($scorm), $scorm->auto, $scorm->id, $CFG->wwwroot, sesskey(), $scoid, $attempt, $mode, $id, $currentorg, $scorm->autocommit)); diff --git a/mod/scorm/datamodels/scorm_13.php b/mod/scorm/datamodels/scorm_13.php index f826a7839e3..e41ca358d19 100644 --- a/mod/scorm/datamodels/scorm_13.php +++ b/mod/scorm/datamodels/scorm_13.php @@ -47,6 +47,7 @@ if ($scoes = $DB->get_records('scorm_scoes', array('scorm' => $scorm->id), 'sort } } +$scorm->autocommit = ($scorm->autocommit === "1") ? true : false; $PAGE->requires->js_init_call('M.scorm_api.init', array($def, $cmiobj, $cmiint, $cmicommentsuser, $cmicommentslms, scorm_debugging($scorm), $scorm->auto, $scorm->id, $CFG->wwwroot, sesskey(), $scoid, $attempt, $mode, $id, $currentorg, $scorm->autocommit));