Merge branch 'MDL-82192-403' of https://github.com/ericmerrill/moodle into MOODLE_403_STABLE

This commit is contained in:
Huong Nguyen
2024-07-18 10:27:33 +07:00
+2 -2
View File
@@ -413,10 +413,10 @@ if (!empty($command)) {
} else {
$track = new stdClass();
$track->scoid = $sco->id;
$track->element = scorm_get_elementid('cmi.core.total_time');
$track->elementid = scorm_get_elementid('cmi.core.total_time');
$track->value = $scormsession->sessiontime;
$atobject = scorm_get_attempt($aiccuser->id, $scormsession->scormid, $attempt);
$track->attempt = $atobject->id;
$track->attemptid = $atobject->id;
$track->timemodified = time();
$id = $DB->insert_record('scorm_scoes_value', $track);
}