commit 37108cc9490cd9fee95aafd6c67d051b861a1a2a
Author: Vinnie Monaco <vinmonaco@gmail.com>
Date:   Fri May 10 17:05:03 2013 -0400

    MDL-38489: added sectionid to course_url

diff --git a/mod/scorm/view.js b/mod/scorm/view.js
index 29e531c..c1709987 100644
--- a/mod/scorm/view.js
+++ b/mod/scorm/view.js
@@ -5,12 +5,13 @@ M.mod_scormform.init = function(Y) {
     var cheight = scormplayerdata.cheight;
     var poptions = scormplayerdata.popupoptions;
     var courseid = scormplayerdata.courseid;
+    var sectionid = scormplayerdata.sectionid;
     var launch = scormplayerdata.launch;
     var currentorg = scormplayerdata.currentorg;
     var sco = scormplayerdata.sco;
     var scorm = scormplayerdata.scorm;
     var launch_url = M.cfg.wwwroot+"/mod/scorm/player.php?a="+scorm+"&currentorg="+currentorg+"&scoid="+sco+"&sesskey="+M.cfg.sesskey;
-    var course_url = M.cfg.wwwroot+"/course/view.php?id="+courseid+"&sesskey="+M.cfg.sesskey;
+    var course_url = M.cfg.wwwroot+"/course/view.php?id="+courseid+"&sectionid="+sectionid+"&sesskey="+M.cfg.sesskey;
 
     if ((cwidth==100) && (cheight==100)) {
         poptions = poptions+',width='+screen.availWidth+',height='+screen.availHeight+',left=0,top=0';
diff --git a/mod/scorm/view.php b/mod/scorm/view.php
index e9027d1..c831982 100644
--- a/mod/scorm/view.php
+++ b/mod/scorm/view.php
@@ -88,6 +88,9 @@ if (!empty($scorm->popup)) {
                                                            'sco' => $scoid,
                                                            'scorm' => $scorm->id,
                                                            'courseid' => $scorm->course,
+                                                           // Section references course_sections(id) NOT course_sections(section).
+                                                           // Better to use since this takes priority in course view.php.
+                                                           'sectionid' => $cm->section, 
                                                            'cwidth' => $scorm->width,
                                                            'cheight' => $scorm->height,
                                                            'popupoptions' => $scorm->options), true);
