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

Error in AICC ExitAU command processing

XMLWordPrintable

      In the SCORM database refactor (MDL-46279), two field name changes were missed in the AICC ExitAU processing.

      in mod/scorm/aicc.php starting around line 414:

              $track = new stdClass();
              $track->scoid = $sco->id;
              $track->element = scorm_get_elementid('cmi.core.total_time');
              $track->value = $scormsession->sessiontime;
              $atobject = scorm_get_attempt($aiccuser->id, $scormsession->scormid, $attempt);
              $track->attempt = $atobject->id;
              $track->timemodified = time();
              $id = $DB->insert_record('scorm_scoes_value', $track);

      Should be:

              $track = new stdClass();
              $track->scoid = $sco->id;
              $track->elementid = scorm_get_elementid('cmi.core.total_time');
              $track->value = $scormsession->sessiontime;
              $atobject = scorm_get_attempt($aiccuser->id, $scormsession->scormid, $attempt);
              $track->attemptid = $atobject->id;
              $track->timemodified = time();
              $id = $DB->insert_record('scorm_scoes_value', $track); 

      Specifically, $track->element should be $track->elementid, and $track->attempt should be $track->attemptid.

      I did check, and the values being populated there are correct, it's just the field names that are incorrect.

            emerrill Eric Merrill
            emerrill Eric Merrill
            Darko Miletic Darko Miletic
            Mihail Geshoski Mihail Geshoski
            Huong Nguyen Huong Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 44 minutes
                44m

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