Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 98bad24a002f0286fbca3e0e0d7127ae8e04a0ae 1 parent 63a5aff
Dan Marsden danmarsden authored
Showing with 15 additions and 1 deletion.
  1. +15 −1 mod/scorm/datamodels/scorm_12.js.php
16 mod/scorm/datamodels/scorm_12.js.php
View
@@ -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";
}
Please sign in to comment.
Something went wrong with that request. Please try again.