Permalink
Browse files

Fixed a bug in masteryscore reach evaluation

  • Loading branch information...
1 parent a66d297 commit 3a9867d3d1f9202c0f91fad4f2c94f4bd8f93c3f bobopinna committed Jul 26, 2005
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 (cmi.core.score.raw >= cmi.student_data.mastery_score) {
+ 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 3a9867d

Please sign in to comment.