Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-28541 SCORM ADL TEST CM-01 MDL-28740 fixing cmi.scaled_passing_sc…

…ore returning null
  • Loading branch information...
commit 6faea458ba7f3ca6363bb79fae0314e78cee79f5 1 parent 7969f1e
Mayank Gupta mayankgupta authored danmarsden committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  mod/scorm/api.php
3  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');
Please sign in to comment.
Something went wrong with that request. Please try again.