Skip to content

Commit

Permalink
fix sco_launched transformation (#686)
Browse files Browse the repository at this point in the history
* fix sco_launched transformation

* remove commented out line of code

* Issue-344: Use $repo to access this data so that it a test repo can supply the data in test mode.
  • Loading branch information
mlynn-lp authored Sep 18, 2023
1 parent 4075847 commit 544715d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transformer/events/mod_scorm/sco_launched.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ function sco_launched(array $config, \stdClass $event) {
$repo = $config['repo'];
$user = $repo->read_record_by_id('user', $event->userid);
$course = $repo->read_record_by_id('course', $event->courseid);
$scorm = $repo->read_record_by_id('scorm', $event->objectid);
$scormscoes = $repo->read_record_by_id('scorm_scoes', $event->objectid);
$scorm = $repo->read_record_by_id('scorm', $scormscoes->scorm);
$lang = utils\get_course_lang($course);

return [[
Expand Down

0 comments on commit 544715d

Please sign in to comment.