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

New attempts always overwrite the first attempt

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.12, 1.9.8
    • 1.9.7
    • SCORM
    • None
    • LAMP, PHP 5.2.11
    • MySQL
    • MOODLE_19_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE
    • Easy

      After the completion of a tracked activity you can launch a new attempt.
      While x.start.time correctly tracks the starting of a new attempt, everything related to the datamodel will be assigned to the first attempt (attempt = 1) 'cause of a typo in accessing the session variable charged to store the attempt number.
      1. Creation of the session scope, mod/scorm/player.php:

      ...
          $SESSION->scorm_attempt = $attempt;
      ...

      2. Accessing the session scope missing the prefix "scorm_", mod/scorm/aicc.php:

      ...
              if (isset($SESSION->attempt)) {
                  $attempt = $SESSION->attempt;
              } else {
                  $attempt = 1;
              }
      ...

            danmarsden Dan Marsden
            matteo Matteo Scaramuccia
            Nobody Nobody (Inactive)
            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.