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

Auto-Continue and Prerequisites bug

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.3, 2.4
    • Fix Version/s: 2.4.2
    • Component/s: SCORM
    • Labels:
    • Testing Instructions:
      Hide

      Ask Dan for a SCORM file that uses pre-reqs that allows you to Test this (don't use zip attached to this bug).
      clear browser and moodle cache first (changes to js files)

      Add the scorm to your course and set
      Autocontinue = true
      Don't use the links in the TOC becuase there is another bug related to auto-continue and TOC - only use navigation within scorm package.
      progress through the scorm and at the end of the SCO press "continue" or "next module" link inside the pacakge (depends on the package)
      It should take you to the next sco automatically.

      Warning: If looking at the JS console ignore this error which comes from MDL-37844:
      Error: TypeError: scorm_layout_widget.getUnitByPosition is not a function
      Source File: mod/scorm/loaddatamodel.php?a=448&scoid=2991&currentorg=&attempt=1
      Line: 219

      Show
      Ask Dan for a SCORM file that uses pre-reqs that allows you to Test this (don't use zip attached to this bug). clear browser and moodle cache first (changes to js files) Add the scorm to your course and set Autocontinue = true Don't use the links in the TOC becuase there is another bug related to auto-continue and TOC - only use navigation within scorm package. progress through the scorm and at the end of the SCO press "continue" or "next module" link inside the pacakge (depends on the package) It should take you to the next sco automatically. Warning: If looking at the JS console ignore this error which comes from MDL-37844 : Error: TypeError: scorm_layout_widget.getUnitByPosition is not a function Source File: mod/scorm/loaddatamodel.php?a=448&scoid=2991&currentorg=&attempt=1 Line: 219
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull Master Branch:
      master_MDL-29207

      Description

      When you use SCORM Auto-Continue to "Yes" and you use Prerequisites the ToC doesn't refresh correctly and the user doesn't progress to the next SCO

      Also - the callback.js.php is basically pure js so we should shift it to module.js so it can be cached better. If we add error handling again at some point we shold do it using js instead of php anyway.

      it throws the following JS error during TOC refresh:
      Error: TypeError: scorm_tree_node is null
      mod/scorm/loaddatamodel.php?a=448&scoid=2991&currentorg=&attempt=1
      Line: 191

      Error: TypeError: scorm_tree_node is null
      Source File: mod/scorm/module.js
      Line: 408

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    11/Mar/13