Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2, 2.3.1, 2.4
    • Fix Version/s: 2.2.5, 2.3.2
    • Component/s: SCORM
    • Labels:
    • Testing Instructions:
      Hide
      1. Add a SCORM to your page - easiest to test with scorm shown in current window and TOC displayed to the left.
      2. Enter SCORM player.
      3. Logout of Moodle on a seperate window - either by using logout link on current page but opening in new window or by having a separate moodle window open and logging out there.
      4. click on a link in the TOC to load a different SCO (or the same SCO) in the iframe.
      5. a message should be displayed stating the user isn't logged in - the login form should not load in the iframe.
      Show
      Add a SCORM to your page - easiest to test with scorm shown in current window and TOC displayed to the left. Enter SCORM player. Logout of Moodle on a seperate window - either by using logout link on current page but opening in new window or by having a separate moodle window open and logging out there. click on a link in the TOC to load a different SCO (or the same SCO) in the iframe. a message should be displayed stating the user isn't logged in - the login form should not load in the iframe.
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull Master Branch:
      master_MDL-34656

      Description

      Reproduce:

      1. Run any SCORM-lesson.
      2. Start working with any lesson page.
      3. Click "Logout" by middle mouse button. Thats do logout, but tab with SCORM will remain on previous window.
      4. Return to window contained SCORM-lesson.
      5. Try move to any lesson-page.

      Result:
      Login form embedding into SCORM-frame.
      !screenshot-1.jpg|thumbnail!

      Solving:
      I manage it by adding next five lines at the start of login/index.php file:

       
      echo '<script>
          var str = top.location.href;
          if (str.substr(str.length - 20, 20) == "mod/scorm/player.php") { 
          top.location.href = str.substr(0, str.length - 20) + "login/index.php"; 
          }</script>';

      That script manage problem, but I think it's not best way.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Sep/12