Permalink
Browse files

MDL-39363 scorm: Accept 0 as a valid score

  • Loading branch information...
1 parent c9827a9 commit 56e69c618818788b7b635b883fb65cef3b57c1fb @ankitagarwal ankitagarwal committed Apr 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/datamodels/scorm_12.js.php
@@ -646,7 +646,7 @@ function StoreData(data,storetotaltime) {
}
if (cmi.core.lesson_mode == 'normal') {
if (cmi.core.credit == 'credit') {
- if (cmi.student_data.mastery_score != '' && cmi.core.score.raw != '') {
+ 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 {

0 comments on commit 56e69c6

Please sign in to comment.