Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-28541 SCORM ADL TEST CM-01 MDL-28740 fixing cmi.scaled_passing_sc…
…ore returning null
  • Loading branch information
mayankgupta authored and danmarsden committed Aug 15, 2011
1 parent 7969f1e commit 05c2b85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mod/scorm/api.php
Expand Up @@ -93,6 +93,9 @@
if (!$sco = scorm_get_sco($scoid)) {
print_error('cannotfindsco', 'scorm');
}
if ($scorm->version == "SCORM_1.3") {
$userdata->{'cmi.scaled_passing_score'} = $DB->get_field('scorm_seq_objective', 'minnormalizedmeasure', array('scoid'=>$scoid));
}
$scorm->version = strtolower(clean_param($scorm->version, PARAM_SAFEDIR)); // Just to be safe
if (file_exists($CFG->dirroot.'/mod/scorm/datamodels/'.$scorm->version.'.js.php')) {
include_once($CFG->dirroot.'/mod/scorm/datamodels/'.$scorm->version.'.js.php');
Expand Down

0 comments on commit 05c2b85

Please sign in to comment.