Permalink
Browse files

SCORM MDL-17891 fix loss of session data - thanks to Ron and Matteo f…

…or report/fixes merged from HEAD
  • Loading branch information...
1 parent f30f961 commit 63a5affbda0b94da296704d42e0ef537afae787f @danmarsden danmarsden committed Jun 24, 2010
Showing with 10 additions and 2 deletions.
  1. +10 −2 mod/scorm/datamodels/scorm_12.js.php
@@ -198,14 +198,22 @@ function LMSFinish (param) {
if (<?php echo $scorm->auto ?> == 1) {
setTimeout('top.document.location=top.next;',500);
}
- }
+ }
+ <?php
+ if (debugging('',DEBUG_DEVELOPER)) {
+ echo 'LogAPICall("LMSFinish", "AJAXResult", result, 0);';
+ }
+ ?>
+ result = ('true' == result) ? 'true' : 'false';
+ errorCode = (result == 'true')? '0' : '101';
<?php
if (debugging('',DEBUG_DEVELOPER)) {
//echo 'alert("Finished SCORM 1.2");';
+ echo 'LogAPICall("LMSFinish", "result", result, 0);';
echo 'LogAPICall("LMSFinish", param, "", 0);';
}
?>
- return "true";
+ return result;
} else {
errorCode = "301";
}

0 comments on commit 63a5aff

Please sign in to comment.