mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-4746 - Course 01 of the ADL SCORM 1.2 test suite fails on point 4. Fix cmi.comments, and mastery_score checking.
This commit is contained in:
parent
f1644b99f1
commit
9797d144b5
@ -90,7 +90,7 @@ $string['no_children'] = 'Tag $a->tag must have children';
|
||||
$string['noactivity'] = 'Nothing to report';
|
||||
$string['nolimit'] = 'Unlimited attempts';
|
||||
$string['nomanifest'] = 'Manifest not found';
|
||||
$string['noprerequisites'] = 'Sorry but you don\'t reach enough prerequisites to access this learning object';
|
||||
$string['noprerequisites'] = 'Sorry but you haven\'t reach enough prerequisites to access this learning object';
|
||||
$string['noreports'] = 'No report to display';
|
||||
$string['normal'] = 'Normal';
|
||||
$string['noscriptnoscorm'] = 'Your browser does not support javascript or it has javascript support disabled. No tracks will recorded.';
|
||||
|
@ -377,7 +377,7 @@ function SCORMapi1_2() {
|
||||
}
|
||||
} else {
|
||||
if (element == 'cmi.comments') {
|
||||
eval(element+'=value;');
|
||||
cmi.comments = cmi.comments + value;
|
||||
} else {
|
||||
eval(element+'=value;');
|
||||
}
|
||||
@ -580,7 +580,7 @@ function SCORMapi1_2() {
|
||||
if (cmi.core.lesson_mode == 'normal') {
|
||||
if (cmi.core.credit == 'credit') {
|
||||
if (cmi.core.lesson_status == 'completed') {
|
||||
if (cmi.student_data.mastery_score != '') {
|
||||
if (cmi.student_data.mastery_score != '' && cmi.core.score.raw != '') {
|
||||
if (parseFloat(cmi.core.score.raw) >= parseFloat(cmi.student_data.mastery_score)) {
|
||||
cmi.core.lesson_status = 'passed';
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user