MDL-17178 - fix grade update so that it happens both when the lesson status, and the score changes. Backport to 1.9. Fix bad debug statement in code (sorry).
This commit is contained in:
@@ -246,7 +246,6 @@ function scorm_get_scoes($id,$organisation=false) {
|
||||
}
|
||||
|
||||
function scorm_insert_track($userid,$scormid,$scoid,$attempt,$element,$value) {
|
||||
if ($element == 'cmi.core.lesson_status') { $value = 'passed'; };
|
||||
$id = null;
|
||||
if ($track = get_record_select('scorm_scoes_track',"userid='$userid' AND scormid='$scormid' AND scoid='$scoid' AND attempt='$attempt' AND element='$element'")) {
|
||||
$track->value = $value;
|
||||
|
||||
Reference in New Issue
Block a user