Skip to content

Commit

Permalink
MDL-30576, Fixing cmi.completion_threshold and default value of minPr…
Browse files Browse the repository at this point in the history
…ogressMeasure to be saved correctly in the database.
  • Loading branch information
mayankgupta authored and Sam Hemelryk committed Dec 14, 2011
1 parent 83688ab commit 9ff12f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/scorm/datamodels/scormlib.php
Expand Up @@ -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);
Expand Down

0 comments on commit 9ff12f3

Please sign in to comment.