Permalink
Browse files

Fixed a bug in reaching masteryscore (score are float)

  • Loading branch information...
bobopinna
bobopinna committed Jul 26, 2005
1 parent 12801f7 commit fffc5d6351bb9b660d8825ae6d5f3288ced9ff9e
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/datamodels/scorm1_2.js.php
@@ -487,7 +487,7 @@ function StoreData(data,storetotaltime) {
if (cmi.core.credit == 'credit') {
if (cmi.core.lesson_status == 'completed') {
if (cmi.student_data.mastery_score != '') {
- if (parseInt(cmi.core.score.raw,10) >= parseInt(cmi.student_data.mastery_score,10)) {
+ if (parseFloat(cmi.core.score.raw) >= parseFloat(cmi.student_data.mastery_score)) {
cmi.core.lesson_status = 'passed';
} else {
cmi.core.lesson_status = 'failed';

0 comments on commit fffc5d6

Please sign in to comment.