Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-37424

lib/outputrenderers.php breaks SCORM launch

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 2.3.3
    • Fix Version/s: None
    • Component/s: Libraries, SCORM
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_23_STABLE

      Description

      On Moodle Moodle 2.3.3+ (Build: 20121230) changes to lib/outputrenderers.php causes SCORM launch to fail. SCORM object launch in a popup or same page ends with a blank page or a a TOC only with no content.

      In current 2.3.3+ (Build: 20121230) lib/outputrenderers.php at line 1359 there is the following code, which breaks the SCORM loading:

      $this->page->requires->yui_module('moodle-core-formautosubmit',
                  'M.core.init_formautosubmit',
                  array(array('selectid' => $select->attributes['id'], 'nothing' => $nothing))
              );
      

      Substituting the above code with the following code taken form a previous 2.3.2 Moodle version, SCORM objects launch correctly as expected

      $this->page->requires->js_init_call('M.util.init_select_autosubmit', array($select->formid, $select->attributes['id'], $nothing));
      

      Hope this can be triaged and integrated soon as is affecting many sites.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: