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

Updating SCORM package breaks all links to specific pages

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.19, 2.2.4, 2.3.1
    • 2.6
    • SCORM
    • MOODLE_19_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • 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

              danmarsden Dan Marsden
              davosmith Davo Smith
              Dan Marsden, Matteo Scaramuccia, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                18/Nov/13