Skip to content

Commit

Permalink
MDL-16299 - Javascript error during scorm player load. Ensure SCOID i…
Browse files Browse the repository at this point in the history
…s always populated. Backport 1.9.
  • Loading branch information
piers committed Sep 3, 2008
1 parent 59499fa commit d6e017d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/scorm/locallib.php
Expand Up @@ -612,11 +612,10 @@ 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 ?>">
<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 ?>">
<?php
if ($scorm->hidebrowse == 0) {
print_string('mode','scorm');
echo '<input type="hidden" name="scoid" value="'.$sco->id.'" />'."\n";
echo ': <input type="radio" id="b" name="mode" value="browse" /><label for="b">'.get_string('browse','scorm').'</label>'."\n";
echo '<input type="radio" id="n" name="mode" value="normal" checked="checked" /><label for="n">'.get_string('normal','scorm')."</label>\n";
} else {
Expand All @@ -631,7 +630,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>
Expand Down

0 comments on commit d6e017d

Please sign in to comment.