From: bobopinna Date: Tue, 26 Sep 2006 07:57:33 +0000 (+0000) Subject: Fixed a problem with reporting and multiattempts X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d380567f823e6610d90be83e423617d924766a54;p=moodle.git Fixed a problem with reporting and multiattempts --- diff --git a/mod/scorm/mod.html b/mod/scorm/mod.html index 88a86db795..113c5e79c2 100755 --- a/mod/scorm/mod.html +++ b/mod/scorm/mod.html @@ -1,5 +1,5 @@ dirroot.'/mod/scorm/configurations.php'); + require_once($CFG->dirroot.'/mod/scorm/locallib.php'); if (!isset($form->name)) { $form->name = ''; } @@ -26,13 +26,14 @@ } if (!isset($form->grademethod)) { $form->grademethod = 0; + $form->whatgrade = 0; + } else { + $form->whatgrade = intval($form->grademethod / 10); + $form->grademethod = $form->grademethod % 10; } if (!isset($form->maxattempt)) { $form->maxattempt = 1; } - if (!isset($form->whatgrade)) { - $form->whatgrade = 0; - } if (!isset($form->hidebrowse)) { $form->hidebrowse = 0; } @@ -107,7 +108,7 @@ } var myRequest = NewHttpReq(); - result = DoRequest(myRequest,"wwwroot) ?>/mod/scorm/validate.php","id=course) ?>&reference="+filename+""); + result = DoRequest(myRequest,"wwwroot) ?>/mod/scorm/validate.php","id=course) ?>&reference="+filename+""+confirmedstr); //alert(result); results = result.split('\n'); result = ''; @@ -444,7 +445,7 @@
- +