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

Bad typeof test in mod/scorm/module.js

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.7.1
    • Fix Version/s: None
    • Component/s: SCORM
    • Labels:
    • Affected Branches:
      MOODLE_27_STABLE

      Description

      On line 460 (https://github.com/moodle/moodle/blob/master/mod/scorm/module.js#L460), we have

      if (typeof result.nextactivity.id != undefined) {

      which always evaluates to true. It should be

      if (typeof result.nextactivity.id != 'undefined') {

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: