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

Updating SCORM package breaks all links to specific pages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.19, 2.2.4, 2.3.1
    • Fix Version/s: 2.6
    • Component/s: SCORM
    • Labels:
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE

      Description

      Every time a SCORM package is updated a new set of 'scorm_scoes' records are created and the old ones are deleted (after fixing up the 'scorm_scoes_tracking' table to point at the new records). This means that any links to specific pages within the SCORM, in the form: [siteurl]/mod/scorm/player.php?a=[XXX]&currentorg=[YYY]&scoid=[ZZZ] will break.

      From a brief look through the code, I cannot see a reason why 'update_record' cannot be used instead of 'insert_record' in cases where the SCO identifier already exists - this would not only fix the linking issue, but also remove the need to fix-up the 'scorm_scoes_tracking' records. I note that the importing of AICC content already appears to work this way.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                danmarsden Dan Marsden
                Reporter:
                davosmith Davo Smith
                Participants:
                Component watchers:
                Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/13