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

Bad typeof test in mod/scorm/module.js

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 2.7.1
    • SCORM
    • MOODLE_27_STABLE

      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') {

            danmarsden Dan Marsden
            xiemaisi Max Schaefer
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.