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

scorm_get_last_completed_attempt only returns "completed" status - not "passed"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.0
    • 2.0
    • SCORM
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      when displaying user grades on the user overview page, the function scorm_get_last_completed_attempt is used but it doesn't return attempts that use the attempt status "passed"

      this line:
      if ($lastattempt = $DB->get_record('scorm_scoes_track', array('userid'=>$userid, 'scormid'=>$scormid, 'value'=> 'completed'), 'max(attempt) as a')) {

      needs to include 'passed' status

      Attachments

        Issue Links

          Activity

            People

              danmarsden Dan Marsden
              danmarsden Dan Marsden
              Nobody Nobody
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.