Permalink
Browse files

MDL-16299 - Javascript error during scorm player load. SCOID should n…

…ot be populated - TOC figures this out. Backport to 1.8.
  • Loading branch information...
1 parent 206c91a commit 3da1e9c5f4976bfb58ef6d987664edf99d305412 piers committed Sep 8, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/scorm/locallib.php
View
@@ -609,7 +609,7 @@ function scorm_view_display ($user, $scorm, $action, $cm, $boxwidth='') {
?>
<div class="scorm-center">
- <form id="theform" method="post" action="<?php echo $CFG->wwwroot ?>/mod/scorm/player.php?scoid=<?php echo $sco->id ?>&amp;id=<?php echo $cm->id ?>&amp;currentorg=<?php echo $orgidentifier ?>">
+ <form id="theform" method="post" action="<?php echo $CFG->wwwroot ?>/mod/scorm/player.php">
<?php
if ($scorm->hidebrowse == 0) {
print_string('mode','scorm');
@@ -627,8 +627,8 @@ function scorm_view_display ($user, $scorm, $action, $cm, $boxwidth='') {
}
?>
<br />
+ <input type="hidden" name="scoid"/>
<input type="hidden" name="id" value="<?php echo $cm->id ?>"/>
- <input type="hidden" name="scoid" value="<?php echo $sco->id ?>"/>
<input type="hidden" name="currentorg" value="<?php echo $orgidentifier ?>" />
<input type="submit" value="<?php print_string('entercourse','scorm') ?>" />
</form>

0 comments on commit 3da1e9c

Please sign in to comment.