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

SCORM module firefox problems

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6, 1.7, 1.8, 1.9
    • Fix Version/s: 1.8.7, 1.9.3, 2.0
    • Component/s: SCORM
    • Labels:
      None
    • Environment:
      Firefox
    • Affected Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      Because of the way FF treats Strings (IE casts a result to the right type), Firefox doesn't always work with SCORM packages, ie. scores are not stored.
      I suggest the culprit is the code:

      elementmodel = element.replace(expression,'.n.');

      in the various datamodel files, for example there are 4 occurrences in scorm_12.js.php.
      Replacing this with

      elementmodel = String(element).replace(expression,'.n.');

      makes it "Firefox-compliant"

      This is the case for moodle 1.6 through 1.8.

      I suggest we make this change to the code, as it surely doesn't affect compatibility with IE.

        Attachments

          Activity

            People

            • Assignee:
              piers Piers Harding
              Reporter:
              bokhove2 Christian Bokhove
              Tester:
              Christian Bokhove
              Participants:
              Component watchers:
              Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Oct/08