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

SCORM return url invalid

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8.6
    • Fix Version/s: 2.8.9, 2.9.3
    • Component/s: SCORM
    • Labels:
    • Environment:
      linux with apache and mysql
    • Database:
      MySQL
    • Testing Instructions:
      Hide
      1. As teacher in course
      2. Use topics or weeks course format and 'Course layout' set to 'All sections in one page'
      3. Add a new scorm activity (use fruit quiz) to course section 3
      4. Select the scorm option 'New window' in 'Display package'
      5. Save amd preview the scorm activity
      6. In the non-new window, the text 'This SCORM package has been launched in a popup window, [...]' - click that link
      7. VERIFY: it should bring you back to the same section you came from in the course i.e. user view.php?id=ID#section-3
      8. Change the course setting 'Course layout' set to 'One section per page'
      9. VERIFY:it should bring you back to the right section page
      Show
      As teacher in course Use topics or weeks course format and 'Course layout' set to 'All sections in one page' Add a new scorm activity (use fruit quiz) to course section 3 Select the scorm option 'New window' in 'Display package' Save amd preview the scorm activity In the non-new window, the text 'This SCORM package has been launched in a popup window, [...] ' - click that link VERIFY: it should bring you back to the same section you came from in the course i.e. user view.php?id=ID#section-3 Change the course setting 'Course layout' set to 'One section per page' VERIFY:it should bring you back to the right section page
    • Workaround:
      Hide

      set to show each section on different page

      Show
      set to show each section on different page
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull Master Branch:
      MDL-51302-master

      Description

      When using a scorm activity which opens in a new window in a course which is using topics format and set to show all sections on one page. Also set the theme to clean to avoid issues with custom themes.

      Launch the SCORM in a new window then move the window out of the way and view the return url on the previous page which says
      "This SCORM package has been launched in a popup window, If you have finished viewing this resource, click here to return to the course page" This is a link to the url the server will return to when the scorm activity is exited and contains the error.

      The url the scorm returns to is invalid as it looses a single character from the end of the url string as per below

      http://

      {servername}/course/view.php?id={course_id}#section-

      It should return the following url.

      http://{servername}

      /course/view.php?id=

      {course_id}

      #section-2

      The Id number is removed from the url so moodle defaults to showing only the course summary as that part of the url is complete.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                poltawski Dan Poltawski
                Reporter:
                barry.matthias@remote-learner.net barry matthias
                Peer reviewer:
                Dan Marsden
                Integrator:
                Andrew Nicols
                Tester:
                cameron1729
                Participants:
                Component watchers:
                Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Nov/15