Permalink
Browse files

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 4, 2011
1 parent 7969f1e commit 05c2b851c0734cbea9fa2905ef8e093907712130
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/scorm/api.php
View
@@ -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');

0 comments on commit 05c2b85

Please sign in to comment.