Permalink
Browse files

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

…or report/fixes missed fix for LMSCommit merged from HEAD
  • Loading branch information...
danmarsden committed Jun 24, 2010
1 parent 63a5aff commit 98bad24a002f0286fbca3e0e0d7127ae8e04a0ae
Showing with 15 additions and 1 deletion.
  1. +15 −1 mod/scorm/datamodels/scorm_12.js.php
@@ -415,7 +415,21 @@ function LMSCommit (param) {
//echo 'alert("Data Commited");';
}
?>
- return "true";
+ <?php
+ if (debugging('',DEBUG_DEVELOPER)) {
+ echo 'LogAPICall("LMSCommit", "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("LMSCommit", "result", result, 0);';
+ echo 'LogAPICall("LMSCommit", param, "", 0);';
+ }
+ ?>
+ return result;
} else {
errorCode = "301";
}

0 comments on commit 98bad24

Please sign in to comment.