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

"cmi.mode" is not set to "browse" when user enters sco in "Preview" mode

    XMLWordPrintable

    Details

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

      Description

      Issue:
      When a student chooses to preview a course by selecting "Preview" before entering, The SCORM API sets "cmi.mode" flag to "normal" so the content assumes that this is a new (normal) attempt and starts sending tracking data.
      Upon exiting the sco, Moodle assumes that it was attempted, and marks the sco as "incomplete", even though the user only wanted to preview the course.

      The expected behavior is to set the "cmi.mode" to "browse" according to SCORM 2004 specs. and this was done correctly in version 2.3+, so this issue is probably a regression from 2.3.

      Steps to reproduce the issue:
      1. Upload a SCORM 2004 compliant package.
      2. Enter package in "Preview" mode, the word "Preview" is displayed above the TOC.
      3. Moodle sets the "cmi.mode" to "normal" instead of "browse".
      4. Moodle incorrectly marks the sco as "attempted".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                danmarsden Dan Marsden
                Reporter:
                gfx Kinan Debes
                Participants:
                Component watchers:
                Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: