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

Scorm course is locked without completing that course

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.10.1
    • Fix Version/s: None
    • Component/s: SCORM
    • Labels:
      None
    • Affected Branches:
      MOODLE_310_STABLE

      Description

      To protect the users from accessing multiple attempts, a maximum attempt is defined and lock after a max attempt is set in the SCORM course setting. *The problem is that when the maximum attempt is reached, the course is locked without checking completion. *
      For example, the user is on his maximum attempt and is accessing the course but go to another page without completing the course. Next time, when he wants to access the course, the course is locked and can't be accessed.

      To fix that problem for moodle 3.10, just add the following code in this file: \mod\scorm\locallib.php
      On line no 1384 in the function of "scorm_get_attempt_count",
      Add this extra condition : "and value='passed'";
      $sql = "SELECT COUNT(DISTINCT attempt)
      FROM

      {scorm_scoes_track}

      WHERE userid = ? AND scormid = ? and value = 'passed'";

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Mohom Ying
              Participants:
              Component watchers:
              Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: