mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
AICC MDL-21305 mastery score should be set even when lessonstatus <> "completed" - thanks to Matteo Scaramuccia for report and fix.
This commit is contained in:
parent
1bd51a6c7c
commit
58b57e2844
1 changed files with 8 additions and 10 deletions
|
@ -268,7 +268,6 @@
|
|||
$id = scorm_insert_track($USER->id, $scorm->id, $sco->id, $attempt, 'cmi.core.lesson_status', 'browsed');
|
||||
}
|
||||
if ($mode == 'normal') {
|
||||
if ($lessonstatus == 'completed') {
|
||||
if ($sco = scorm_get_sco($scoid)) {
|
||||
if (!empty($sco->mastery_score)) {
|
||||
if (!empty($score)) {
|
||||
|
@ -283,7 +282,6 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
echo "error=0\r\nerror_text=Successful\r\n";
|
||||
} else if ($status == 'Terminated') {
|
||||
echo "error=1\r\nerror_text=Terminated\r\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue