From d380567f823e6610d90be83e423617d924766a54 Mon Sep 17 00:00:00 2001 From: bobopinna Date: Tue, 26 Sep 2006 07:57:33 +0000 Subject: [PATCH] Fixed a problem with reporting and multiattempts --- mod/scorm/mod.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 @@
- +
-- 2.39.5