Permalink
Browse files

MDL-30576, Fixing cmi.completion_threshold and default value of minPr…

…ogressMeasure to be saved correctly in the database.
  • Loading branch information...
1 parent d0e016f commit b5a26fe11a03e4c5debfbd702bb8d3e34c2abf10 @mayankgupta mayankgupta committed Dec 4, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 mod/scorm/datamodels/scormlib.php
View
6 mod/scorm/datamodels/scormlib.php
@@ -208,10 +208,10 @@ function scorm_get_manifest($blocks, $scoes) {
case 'ADLCP:COMPLETIONTHRESHOLD':
$parent = array_pop($parents);
array_push($parents, $parent);
- if (!isset($block['tagData'])) {
- $block['tagData'] = '';
+ if (!isset($block['attrs']['MINPROGRESSMEASURE'])) {
+ $block['attrs']['MINPROGRESSMEASURE'] = '1.0';
}
- $scoes->elements[$manifest][$parent->organization][$parent->identifier]->threshold = $block['tagData'];
+ $scoes->elements[$manifest][$parent->organization][$parent->identifier]->threshold = $block['attrs']['MINPROGRESSMEASURE'];
break;
case 'ADLNAV:PRESENTATION':
$parent = array_pop($parents);

0 comments on commit b5a26fe

Please sign in to comment.