Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed a bug in reaching masteryscore (score are float)

  • Loading branch information...
commit fffc5d6351bb9b660d8825ae6d5f3288ced9ff9e 1 parent 12801f7
bobopinna authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  mod/scorm/datamodels/scorm1_2.js.php
2  mod/scorm/datamodels/scorm1_2.js.php
@@ -487,7 +487,7 @@ function StoreData(data,storetotaltime) {
487 487 if (cmi.core.credit == 'credit') {
488 488 if (cmi.core.lesson_status == 'completed') {
489 489 if (cmi.student_data.mastery_score != '') {
490   - if (parseInt(cmi.core.score.raw,10) >= parseInt(cmi.student_data.mastery_score,10)) {
  490 + if (parseFloat(cmi.core.score.raw) >= parseFloat(cmi.student_data.mastery_score)) {
491 491 cmi.core.lesson_status = 'passed';
492 492 } else {
493 493 cmi.core.lesson_status = 'failed';

0 comments on commit fffc5d6

Please sign in to comment.
Something went wrong with that request. Please try again.