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

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

XMLWordPrintable

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

      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

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

              Created:
              Updated:
              Resolved:

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