Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-39363 scorm: Accept 0 as a valid score

  • Loading branch information...
commit 56e69c618818788b7b635b883fb65cef3b57c1fb 1 parent c9827a9
@ankitagarwal ankitagarwal authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/scorm/datamodels/scorm_12.js.php
View
2  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 {
Please sign in to comment.
Something went wrong with that request. Please try again.