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:
piers 2008-08-27 02:41:13 +00:00
parent f1644b99f1
commit 9797d144b5
2 changed files with 3 additions and 3 deletions

View File

@ -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.';

View File

@ -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 {