]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16299 - Javascript error during scorm player load. SCOID should not be populated...
authorpiers <piers>
Mon, 8 Sep 2008 00:31:15 +0000 (00:31 +0000)
committerpiers <piers>
Mon, 8 Sep 2008 00:31:15 +0000 (00:31 +0000)
mod/scorm/locallib.php

index ef864992178e07875519623d161fbd12c7971391..fc950f48caed138e045f311aa54dcb6470cb7570 100755 (executable)
@@ -606,7 +606,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');
@@ -624,8 +624,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('enter','scorm') ?>" />
               </form>