Skip to content
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 83688ab commit 9ff12f3dae43effa9eac348d60aee05cc5ba01fb @mayankgupta mayankgupta committed with Sam Hemelryk Dec 5, 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 9ff12f3

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