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

Data missing in SCORM datamodel elements under some circumstances

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.9.7
    • Fix Version/s: 1.9.10
    • Component/s: SCORM
    • Labels:
      None
    • Environment:
      LAMP, PHP 5.2.12
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Scenario:

      • SCORM 1.2 course;
      • Single attempt allowed.
        If the content has already been launched and e.g. the status of an item is "failed", at launch time the "failed" status is the default value. Suppose that during the life cycle of the tracking session the status is set to:
      • incomplete + LMSCommit() => transferred into the DB
      • failed + LMSCommit() => no transfer at all into the DB
        At the end of the session (LMSFinish()) the status of the item is "incomplete" instead of the expected value, "failed".

      The fault is within the architecture of the datamodel object, as defined in datamodels/scorm_12.js.php: it mixes default datamodel values with initialization values from past session. This causes a fault in the logic coded in CollectData() in which only differences against default values, when available, are exposed to the server for being stored into the DB.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              piers Piers Harding
              Reporter:
              matteo Matteo Scaramuccia
              Tester:
              Nobody
              Participants:
              Component watchers:
              Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Oct/10